44 lines
876 B
Python
44 lines
876 B
Python
import json
|
|
|
|
|
|
def load_json_data_from_file(file_path):
|
|
"""
|
|
A compléter ....
|
|
"""
|
|
pass
|
|
|
|
|
|
def load_yaml_data_from_file(file_path):
|
|
"""
|
|
A compléter ....
|
|
"""
|
|
pass
|
|
|
|
|
|
def render_network_config(template_name, data):
|
|
"""
|
|
A compléter ....
|
|
"""
|
|
pass
|
|
|
|
|
|
def save_built_config(file_name, data):
|
|
"""
|
|
A compléter ....
|
|
"""
|
|
pass
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
#process R2
|
|
# r2_data = load_json_data_from_file(file_path='data/R2.json')
|
|
# r2_config = render_network_config(template_name='R2.j2', data=r2_data)
|
|
# save_built_config('config/R2.conf', r2_config)
|
|
|
|
#process ESW2
|
|
# esw2_data = load_json_data_from_file(file_path='data/ESW2.json')
|
|
# esw2_config = render_network_config(template_name='ESW2.j2', data=esw2_data)
|
|
# save_built_config('config/ESW2.conf', esw2_config)
|
|
|
|
pass |