Commit 8d6f2670 authored by Kirill Smelkov's avatar Kirill Smelkov

software/ors-amarisoft: Stop autogenerating software*.cfg.json

There is now only 2 kinds of softwares - ORS and generic, and their cfg.json
will diverge with ORS staying as it is now for backward compatibility, and
generic gaining more features and more kind of shared instances. That means
that it no longer makes sense to render those two from a common source.

-> Stop rendering them and leave previous rendered result in place for further manual edits.
parent 96011ec3
...@@ -34,9 +34,6 @@ defaults = { ...@@ -34,9 +34,6 @@ defaults = {
'default_k' : "00112233445566778899aabbccddeeff", 'default_k' : "00112233445566778899aabbccddeeff",
} }
with open('software.cfg.json.jinja2', 'r') as f:
software_json_template = Template(f.read())
instance_json_template_map = {} instance_json_template_map = {}
for software_type in ['enb', 'gnb', 'ue']: for software_type in ['enb', 'gnb', 'ue']:
with open('instance-{}-input-schema.json.jinja2'.format(software_type), 'r') as f: with open('instance-{}-input-schema.json.jinja2'.format(software_type), 'r') as f:
...@@ -61,8 +58,6 @@ for software in (ors, generic): ...@@ -61,8 +58,6 @@ for software in (ors, generic):
else: else:
v = '-'+software['software_name'] v = '-'+software['software_name']
emit('software{}.cfg.json'.format(v),
software_json_template.render(**ctx))
emit('software{}.cfg'.format(v), emit('software{}.cfg'.format(v),
software_template.render(**ctx)) software_template.render(**ctx))
for software_type in ['enb', 'gnb', 'ue']: for software_type in ['enb', 'gnb', 'ue']:
......
{%- set v = '' if software_name == 'generic' else '-'+software_name -%}
{
"name": "ORS Amarisoft",
"description": "4G and 5G amarisoft stack for ORS",
"serialisation": "json-in-xml",
"software-type": {
{%- if bbu != 'ors' %}
"ue": {
"title": "UE",
"description": "UE Configuration",
"software-type": "ue",
"request": "instance{{ v }}-ue-input-schema.json",
"response": "instance{{ v }}-ue-schema.json",
"index": 5
},
{%- endif %}
"enb": {
"title": "eNB",
"software-type": "enb",
"description": "eNodeB Configuration",
"request": "instance{{ v }}-enb-input-schema.json",
"response": "instance{{ v }}-enb-schema.json",
"index": 1
},
"gnb": {
"title": "gNB",
"software-type": "gnb",
"description": "gNodeB Configuration",
"request": "instance{{ v }}-gnb-input-schema.json",
"response": "instance{{ v }}-gnb-schema.json",
"index": 2
},
"core-network": {
"title": "Core Network",
"software-type": "core-network",
"description": "Core Network Configuration",
"request": "instance-core-network-input-schema.json",
"response": "instance-core-network-schema.json",
"index": 3
},
"core-network-slave": {
"title": "Core Network Sim Card",
"description": "Core Network Sim Card Configuration",
"software-type": "core-network",
"request": "sim/input-schema.json",
"response": "sim/schema.json",
"shared": true,
"index": 4
}
}
}
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