Commit b7d638e3 authored by Joanne Hugé's avatar Joanne Hugé

ors-amarisoft: fix json formatting and slave description

parent 59ff0e3b
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
"mme_list": { "mme_list": {
"title": "MME list", "title": "MME list",
"description": "Optionnal. List of MME to which the gNodeB is connected", "description": "Optionnal. List of MME to which the gNodeB is connected",
"patternProperties": { "patternProperties": {
".*": { ".*": {
"properties": { "properties": {
"mme_addr": { "mme_addr": {
...@@ -68,25 +68,25 @@ ...@@ -68,25 +68,25 @@
"plmn_list": { "plmn_list": {
"title": "PLMN list", "title": "PLMN list",
"description": "List of PLMNs broadcasted by the eNodeB, at most 6 (default: 00101)", "description": "List of PLMNs broadcasted by the eNodeB, at most 6 (default: 00101)",
"patternProperties": { "patternProperties": {
".*": { ".*": {
"properties": { "properties": {
"plmn": { "plmn": {
"default": "00101", "default": "00101",
"title": "Public Land Mobile Network", "title": "Public Land Mobile Network",
"description": "Public Land Mobile Network", "description": "Public Land Mobile Network",
"type": "string" "type": "string"
}, },
"attach_without_pdn": { "attach_without_pdn": {
"default": false, "default": false,
"title": "Attach Without PDN", "title": "Attach Without PDN",
"description": "Optional boolean. Indicates if PLMN supports attach without PDN connectivity.", "description": "Optional boolean. Indicates if PLMN supports attach without PDN connectivity.",
"type": "boolean" "type": "boolean"
}, },
"reserved": { "reserved": {
"default": false, "default": false,
"title": "Reserved", "title": "Reserved",
"description": "True if the cell is reserved for operator use.", "description": "True if the cell is reserved for operator use.",
"type": "boolean" "type": "boolean"
} }
}, },
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
"amf_list": { "amf_list": {
"title": "AMF list", "title": "AMF list",
"description": "Optionnal. List of AMF to which the gNodeB is connected", "description": "Optionnal. List of AMF to which the gNodeB is connected",
"patternProperties": { "patternProperties": {
".*": { ".*": {
"properties": { "properties": {
"amf_addr": { "amf_addr": {
...@@ -80,30 +80,30 @@ ...@@ -80,30 +80,30 @@
"plmn_list": { "plmn_list": {
"title": "PLMN list", "title": "PLMN list",
"description": "List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)", "description": "List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)",
"patternProperties": { "patternProperties": {
".*": { ".*": {
"properties": { "properties": {
"plmn": { "plmn": {
"default": "00101", "default": "00101",
"title": "Public Land Mobile Network", "title": "Public Land Mobile Network",
"description": "Public Land Mobile Network", "description": "Public Land Mobile Network",
"type": "string" "type": "string"
}, },
"tac": { "tac": {
"default": 100, "default": 100,
"title": "Tracking Area Code", "title": "Tracking Area Code",
"description": "Integer (range 0 to 16777215)", "description": "Integer (range 0 to 16777215)",
"type": "number" "type": "number"
}, },
"ranac": { "ranac": {
"title": "Optional integer (range 0 to 255)", "title": "Optional integer (range 0 to 255)",
"description": "RAN Area Code", "description": "RAN Area Code",
"type": "number" "type": "number"
}, },
"reserved": { "reserved": {
"default": false, "default": false,
"title": "Reserved", "title": "Reserved",
"description": "True if the cell is reserved for operator use.", "description": "True if the cell is reserved for operator use.",
"type": "boolean" "type": "boolean"
} }
}, },
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
"nssai": { "nssai": {
"title": "AMF slices configuration", "title": "AMF slices configuration",
"description": "AMF slices configuration.", "description": "AMF slices configuration.",
"patternProperties": { "patternProperties": {
".*": { ".*": {
"properties": { "properties": {
"sst": { "sst": {
......
...@@ -112,16 +112,16 @@ with open('software.jinja2.cfg', 'r') as f: ...@@ -112,16 +112,16 @@ with open('software.jinja2.cfg', 'r') as f:
for rf_mode_context in rf_mode_context_list: for rf_mode_context in rf_mode_context_list:
with open('software-{}.cfg.json'.format(rf_mode_context['rf_mode']), with open('software-{}.cfg.json'.format(rf_mode_context['rf_mode']),
'w+') as f: 'w+') as f:
f.write(software_json_template.render(**rf_mode_context, **global_context)) f.write(software_json_template.render(**rf_mode_context, **global_context) + '\n')
with open('software-{}.cfg'.format(rf_mode_context['rf_mode']), with open('software-{}.cfg'.format(rf_mode_context['rf_mode']),
'w+') as f: 'w+') as f:
f.write(software_template.render(**rf_mode_context, **global_context)) f.write(software_template.render(**rf_mode_context, **global_context) + '\n')
for software_type in ['enb', 'enb-epc', 'gnb', 'gnb-epc']: for software_type in ['enb', 'enb-epc', 'gnb', 'gnb-epc']:
with open('instance-{}-{}-input-schema.json'.format( with open('instance-{}-{}-input-schema.json'.format(
rf_mode_context['rf_mode'], rf_mode_context['rf_mode'],
software_type), software_type),
'w+') as f: 'w+') as f:
if software_type in ['enb', 'enb-epc']: if software_type in ['enb', 'enb-epc']:
f.write(instance_enb_json_template.render(**rf_mode_context, **global_context, epc='epc' in software_type)) f.write(instance_enb_json_template.render(**rf_mode_context, **global_context, epc='epc' in software_type) + '\n')
else: else:
f.write(instance_gnb_json_template.render(**rf_mode_context, **global_context, epc='epc' in software_type)) f.write(instance_gnb_json_template.render(**rf_mode_context, **global_context, epc='epc' in software_type) + '\n')
...@@ -20,4 +20,4 @@ default-nr-rx-gain = 40 ...@@ -20,4 +20,4 @@ default-nr-rx-gain = 40
default-nr-ssb-pos-bitmap = 1000 default-nr-ssb-pos-bitmap = 1000
min-frequency = 1880.0 min-frequency = 1880.0
max-frequency = 1920 max-frequency = 1920
\ No newline at end of file
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
"index": 4 "index": 4
}, },
"gnb-epc-slave": { "gnb-epc-slave": {
"title": "Sim Card", "title": "gNB-EPC Sim Card",
"description": "Sim Card Configuration", "description": "gNB-EPC Sim Card Configuration",
"software-type": "gnb-epc", "software-type": "gnb-epc",
"request": "instance-gnb-epc-slave-input-schema.json", "request": "instance-gnb-epc-slave-input-schema.json",
"response": "instance-gnb-epc-slave-schema.json", "response": "instance-gnb-epc-slave-schema.json",
...@@ -53,8 +53,8 @@ ...@@ -53,8 +53,8 @@
"index": 5 "index": 5
}, },
"enb-epc-slave": { "enb-epc-slave": {
"title": "Sim Card", "title": "eNB-EPC Sim Card",
"description": "Sim Card Configuration", "description": "eNB-EPC Sim Card Configuration",
"software-type": "enb-epc", "software-type": "enb-epc",
"request": "instance-enb-epc-slave-input-schema.json", "request": "instance-enb-epc-slave-input-schema.json",
"response": "instance-enb-epc-slave-schema.json", "response": "instance-enb-epc-slave-schema.json",
...@@ -62,8 +62,8 @@ ...@@ -62,8 +62,8 @@
"index": 6 "index": 6
}, },
"epc-slave": { "epc-slave": {
"title": "Sim Card", "title": "EPC Sim Card",
"description": "Sim Card Configuration", "description": "EPC Sim Card Configuration",
"software-type": "epc", "software-type": "epc",
"request": "instance-epc-slave-input-schema.json", "request": "instance-epc-slave-input-schema.json",
"response": "instance-epc-slave-schema.json", "response": "instance-epc-slave-schema.json",
...@@ -71,4 +71,4 @@ ...@@ -71,4 +71,4 @@
"index": 7 "index": 7
} }
} }
} }
\ No newline at end of file
...@@ -20,4 +20,4 @@ default-nr-rx-gain = 40 ...@@ -20,4 +20,4 @@ default-nr-rx-gain = 40
default-nr-ssb-pos-bitmap = 10000000 default-nr-ssb-pos-bitmap = 10000000
min-frequency = 2570 min-frequency = 2570
max-frequency = 2620 max-frequency = 2620
\ No newline at end of file
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
"index": 4 "index": 4
}, },
"gnb-epc-slave": { "gnb-epc-slave": {
"title": "Sim Card", "title": "gNB-EPC Sim Card",
"description": "Sim Card Configuration", "description": "gNB-EPC Sim Card Configuration",
"software-type": "gnb-epc", "software-type": "gnb-epc",
"request": "instance-gnb-epc-slave-input-schema.json", "request": "instance-gnb-epc-slave-input-schema.json",
"response": "instance-gnb-epc-slave-schema.json", "response": "instance-gnb-epc-slave-schema.json",
...@@ -53,8 +53,8 @@ ...@@ -53,8 +53,8 @@
"index": 5 "index": 5
}, },
"enb-epc-slave": { "enb-epc-slave": {
"title": "Sim Card", "title": "eNB-EPC Sim Card",
"description": "Sim Card Configuration", "description": "eNB-EPC Sim Card Configuration",
"software-type": "enb-epc", "software-type": "enb-epc",
"request": "instance-enb-epc-slave-input-schema.json", "request": "instance-enb-epc-slave-input-schema.json",
"response": "instance-enb-epc-slave-schema.json", "response": "instance-enb-epc-slave-schema.json",
...@@ -62,8 +62,8 @@ ...@@ -62,8 +62,8 @@
"index": 6 "index": 6
}, },
"epc-slave": { "epc-slave": {
"title": "Sim Card", "title": "EPC Sim Card",
"description": "Sim Card Configuration", "description": "EPC Sim Card Configuration",
"software-type": "epc", "software-type": "epc",
"request": "instance-epc-slave-input-schema.json", "request": "instance-epc-slave-input-schema.json",
"response": "instance-epc-slave-schema.json", "response": "instance-epc-slave-schema.json",
...@@ -71,4 +71,4 @@ ...@@ -71,4 +71,4 @@
"index": 7 "index": 7
} }
} }
} }
\ No newline at end of file
...@@ -20,4 +20,4 @@ default-nr-rx-gain = 40 ...@@ -20,4 +20,4 @@ default-nr-rx-gain = 40
default-nr-ssb-pos-bitmap = 10000000 default-nr-ssb-pos-bitmap = 10000000
min-frequency = 3400 min-frequency = 3400
max-frequency = 3600 max-frequency = 3600
\ No newline at end of file
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
"index": 4 "index": 4
}, },
"gnb-epc-slave": { "gnb-epc-slave": {
"title": "Sim Card", "title": "gNB-EPC Sim Card",
"description": "Sim Card Configuration", "description": "gNB-EPC Sim Card Configuration",
"software-type": "gnb-epc", "software-type": "gnb-epc",
"request": "instance-gnb-epc-slave-input-schema.json", "request": "instance-gnb-epc-slave-input-schema.json",
"response": "instance-gnb-epc-slave-schema.json", "response": "instance-gnb-epc-slave-schema.json",
...@@ -53,8 +53,8 @@ ...@@ -53,8 +53,8 @@
"index": 5 "index": 5
}, },
"enb-epc-slave": { "enb-epc-slave": {
"title": "Sim Card", "title": "eNB-EPC Sim Card",
"description": "Sim Card Configuration", "description": "eNB-EPC Sim Card Configuration",
"software-type": "enb-epc", "software-type": "enb-epc",
"request": "instance-enb-epc-slave-input-schema.json", "request": "instance-enb-epc-slave-input-schema.json",
"response": "instance-enb-epc-slave-schema.json", "response": "instance-enb-epc-slave-schema.json",
...@@ -62,8 +62,8 @@ ...@@ -62,8 +62,8 @@
"index": 6 "index": 6
}, },
"epc-slave": { "epc-slave": {
"title": "Sim Card", "title": "EPC Sim Card",
"description": "Sim Card Configuration", "description": "EPC Sim Card Configuration",
"software-type": "epc", "software-type": "epc",
"request": "instance-epc-slave-input-schema.json", "request": "instance-epc-slave-input-schema.json",
"response": "instance-epc-slave-schema.json", "response": "instance-epc-slave-schema.json",
...@@ -71,4 +71,4 @@ ...@@ -71,4 +71,4 @@
"index": 7 "index": 7
} }
} }
} }
\ No newline at end of file
...@@ -20,4 +20,4 @@ default-nr-rx-gain = 40 ...@@ -20,4 +20,4 @@ default-nr-rx-gain = 40
default-nr-ssb-pos-bitmap = 10000000 default-nr-ssb-pos-bitmap = 10000000
min-frequency = 3600 min-frequency = 3600
max-frequency = 3800 max-frequency = 3800
\ No newline at end of file
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
"index": 4 "index": 4
}, },
"gnb-epc-slave": { "gnb-epc-slave": {
"title": "Sim Card", "title": "gNB-EPC Sim Card",
"description": "Sim Card Configuration", "description": "gNB-EPC Sim Card Configuration",
"software-type": "gnb-epc", "software-type": "gnb-epc",
"request": "instance-gnb-epc-slave-input-schema.json", "request": "instance-gnb-epc-slave-input-schema.json",
"response": "instance-gnb-epc-slave-schema.json", "response": "instance-gnb-epc-slave-schema.json",
...@@ -53,8 +53,8 @@ ...@@ -53,8 +53,8 @@
"index": 5 "index": 5
}, },
"enb-epc-slave": { "enb-epc-slave": {
"title": "Sim Card", "title": "eNB-EPC Sim Card",
"description": "Sim Card Configuration", "description": "eNB-EPC Sim Card Configuration",
"software-type": "enb-epc", "software-type": "enb-epc",
"request": "instance-enb-epc-slave-input-schema.json", "request": "instance-enb-epc-slave-input-schema.json",
"response": "instance-enb-epc-slave-schema.json", "response": "instance-enb-epc-slave-schema.json",
...@@ -62,8 +62,8 @@ ...@@ -62,8 +62,8 @@
"index": 6 "index": 6
}, },
"epc-slave": { "epc-slave": {
"title": "Sim Card", "title": "EPC Sim Card",
"description": "Sim Card Configuration", "description": "EPC Sim Card Configuration",
"software-type": "epc", "software-type": "epc",
"request": "instance-epc-slave-input-schema.json", "request": "instance-epc-slave-input-schema.json",
"response": "instance-epc-slave-schema.json", "response": "instance-epc-slave-schema.json",
...@@ -71,4 +71,4 @@ ...@@ -71,4 +71,4 @@
"index": 7 "index": 7
} }
} }
} }
\ No newline at end of file
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
"index": 4 "index": 4
}, },
"gnb-epc-slave": { "gnb-epc-slave": {
"title": "Sim Card", "title": "gNB-EPC Sim Card",
"description": "Sim Card Configuration", "description": "gNB-EPC Sim Card Configuration",
"software-type": "gnb-epc", "software-type": "gnb-epc",
"request": "instance-gnb-epc-slave-input-schema.json", "request": "instance-gnb-epc-slave-input-schema.json",
"response": "instance-gnb-epc-slave-schema.json", "response": "instance-gnb-epc-slave-schema.json",
...@@ -53,8 +53,8 @@ ...@@ -53,8 +53,8 @@
"index": 5 "index": 5
}, },
"enb-epc-slave": { "enb-epc-slave": {
"title": "Sim Card", "title": "eNB-EPC Sim Card",
"description": "Sim Card Configuration", "description": "eNB-EPC Sim Card Configuration",
"software-type": "enb-epc", "software-type": "enb-epc",
"request": "instance-enb-epc-slave-input-schema.json", "request": "instance-enb-epc-slave-input-schema.json",
"response": "instance-enb-epc-slave-schema.json", "response": "instance-enb-epc-slave-schema.json",
...@@ -62,8 +62,8 @@ ...@@ -62,8 +62,8 @@
"index": 6 "index": 6
}, },
"epc-slave": { "epc-slave": {
"title": "Sim Card", "title": "EPC Sim Card",
"description": "Sim Card Configuration", "description": "EPC Sim Card Configuration",
"software-type": "epc", "software-type": "epc",
"request": "instance-epc-slave-input-schema.json", "request": "instance-epc-slave-input-schema.json",
"response": "instance-epc-slave-schema.json", "response": "instance-epc-slave-schema.json",
......
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