initial commit
This commit is contained in:
5
TP-01/scripts/README.md
Normal file
5
TP-01/scripts/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# SCRIPTS
|
||||
|
||||
**This directory is required.**
|
||||
|
||||
The scripts directory contains your python scripts.
|
||||
44
TP-01/scripts/__main__.py
Normal file
44
TP-01/scripts/__main__.py
Normal file
@@ -0,0 +1,44 @@
|
||||
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
|
||||
Reference in New Issue
Block a user