Commit dce00434 authored by Kirill Smelkov's avatar Kirill Smelkov

software/ors-amarisoft: slapos-render-config: Also render ue-*.cfg

This is useful during development while working on ue-*.jinja2.cfg

/cc @lu.xu, @tomo, @xavier_thompson, @Daetalus
/reviewed-by @jhuge
/reviewed-on !1513
parent 9c4b340e
...@@ -90,6 +90,10 @@ def do(src, out, rat, slapparameter_dict): ...@@ -90,6 +90,10 @@ def do(src, out, rat, slapparameter_dict):
"etc": "etc", "etc": "etc",
"var": "var" "var": "var"
}, },
"pub_info": {
"rue_bind_addr": "::1",
"com_addr": "[::1]:9002"
},
"slapparameter_dict": %(jslapparameter_dict)s "slapparameter_dict": %(jslapparameter_dict)s
}""" }"""
...@@ -100,11 +104,17 @@ def do_enb(): ...@@ -100,11 +104,17 @@ def do_enb():
do('enb.jinja2.cfg', 'gnb.cfg', 'nr', {"tdd_ul_dl_config": "5ms 8UL 1DL 2/10 (maximum uplink)"}) do('enb.jinja2.cfg', 'gnb.cfg', 'nr', {"tdd_ul_dl_config": "5ms 8UL 1DL 2/10 (maximum uplink)"})
def do_ue():
do('ue-lte.jinja2.cfg', 'ue-lte.cfg', 'lte', {'rue_addr': 'host1'})
do('ue-nr.jinja2.cfg', 'ue-nr.cfg', 'nr', {'rue_addr': 'host2'})
def main(): def main():
os.makedirs('config/out', exist_ok=True) os.makedirs('config/out', exist_ok=True)
for f in glob.glob('config/out/*'): for f in glob.glob('config/out/*'):
os.remove(f) os.remove(f)
do_enb() do_enb()
do_ue()
if __name__ == '__main__': if __name__ == '__main__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment