Ajout Config ESW3
This commit is contained in:
@@ -41,6 +41,12 @@ def create_vlan_config_cpe_paris():
|
||||
"""
|
||||
Must return two values : router config and the switch config
|
||||
"""
|
||||
esw3_data = load_json_data_from_file(file_path='data/vlan_ESW3.json')
|
||||
esw3_config = render_network_config(template_name='vlan_switch.j2', data=esw3_data)
|
||||
|
||||
R3_data = load_json_data_from_file(file_path='data/vlan_R03.json')
|
||||
R3_config = render_network_config(template_name='vlan_router.j2', data=R3_data)
|
||||
return R3_config,esw3_config
|
||||
pass
|
||||
|
||||
|
||||
@@ -52,6 +58,6 @@ if __name__ == "__main__":
|
||||
save_built_config('config/vlan_R02.conf', r02_config)
|
||||
save_built_config('config/vlan_ESW2.conf', esw2_config)
|
||||
|
||||
# r03_config, esw3_config = create_vlan_config_cpe_paris()
|
||||
# save_built_config('config/vlan_R03.conf', r03_config)
|
||||
# save_built_config('config/vlan_ESW3.conf', esw3_config)
|
||||
r03_config, esw3_config = create_vlan_config_cpe_paris()
|
||||
save_built_config('config/vlan_R03.conf', r03_config)
|
||||
save_built_config('config/vlan_ESW3.conf', esw3_config)
|
||||
|
||||
Reference in New Issue
Block a user