|
|
|
@ -56,15 +56,15 @@ def gen_bridge_files():
|
|
|
|
|
'bridge.conf',
|
|
|
|
|
'gen_bridges.sh',
|
|
|
|
|
]
|
|
|
|
|
context = {'bridges': bridges}
|
|
|
|
|
context = {'bridges': bridges}
|
|
|
|
|
|
|
|
|
|
loader = jinja2.FileSystemLoader('templates/')
|
|
|
|
|
environment = jinja2.Environment(loader=loader, trim_blocks=True, keep_trailing_newline=True)
|
|
|
|
|
for f in files:
|
|
|
|
|
template = environment.get_template(f)
|
|
|
|
|
template.stream(context).dump('output/' + f)
|
|
|
|
|
mode = os.stat('output/gen_bridges.sh').st_mode
|
|
|
|
|
os.chmod('output/gen_bridges.sh', mode | 0o0100)
|
|
|
|
|
loader = jinja2.FileSystemLoader('templates/')
|
|
|
|
|
environment = jinja2.Environment(loader=loader, trim_blocks=True, keep_trailing_newline=True)
|
|
|
|
|
for f in files:
|
|
|
|
|
template = environment.get_template(f)
|
|
|
|
|
template.stream(context).dump('output/' + f)
|
|
|
|
|
mode = os.stat('output/gen_bridges.sh').st_mode
|
|
|
|
|
os.chmod('output/gen_bridges.sh', mode | 0o0100)
|
|
|
|
|
|
|
|
|
|
# Connections
|
|
|
|
|
# dict[ net_num -> [comp_names]
|
|
|
|
|