Commit cc4a2fde authored by Lu Xu's avatar Lu Xu 👀

ors-amarisoft: fixup, add test

parent 9d290810
...@@ -15,126 +15,29 @@ ...@@ -15,126 +15,29 @@
"type": "number", "type": "number",
"default": 40 "default": 40
}, },
"dl_nr_arfcn": { "dl_earfcn": {
"title": "DL NR ARFCN", "title": "DL EARFCN",
"description": "Downlink NR Absolute Radio Frequency Channel Number of the cell", "description": "Downlink E-UTRA Absolute Radio Frequency Channel Number of the cell",
"type": "number", "type": "number",
"default": 378000 "default": 38350
}, },
"nr_band": { "n_rb_dl": {
"title": "NR band", "title": "DL RB",
"description": "NR band number", "description": "number of DL resource blocks",
"type": "number", "type": "number",
"default": 39 "default": 100
}, },
"nr_bandwidth": { "imsi": {
"title": "Bandwidth", "title": "IMSI",
"description": "Downlink Bandwidth (in MHz)", "description": "IMSI",
"type": "number",
"default": 40
},
"amf_list": {
"title": "AMF list",
"description": "Optionnal. List of AMF to which the gNodeB is connected",
"patternProperties": {
".*": {
"properties": {
"amf_addr": {
"title": "AMF Address",
"description": "IP address (and optional port) of NGAP SCTP connection to the AMF. The default port is 38412.",
"type": "string"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"gnb_id": {
"title": "gNB ID",
"description": "gNB ID",
"type": "string", "type": "string",
"default": "0x12345" "default": 001010123456789
}, },
"pci": { "k": {
"title": "Physical Cell ID", "title": "K",
"description": "Physical Cell ID", "description": "Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK).",
"type": "number",
"default": 1
},
"ssb_pos_bitmap": {
"title": "SSB Position Bitmap",
"description": "SSB position bitmap in bits (4, 8 or 64 bits depending on the DL frequency).",
"type": "string", "type": "string",
"default": 1000 "default": 00112233445566778899aabbccddeeff
},
"plmn_list": {
"title": "PLMN list",
"description": "List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)",
"patternProperties": {
".*": {
"properties": {
"plmn": {
"default": "00101",
"title": "Public Land Mobile Network",
"description": "Public Land Mobile Network",
"type": "string"
},
"tac": {
"default": 100,
"title": "Tracking Area Code",
"description": "Integer (range 0 to 16777215)",
"type": "number"
},
"ranac": {
"title": "Optional integer (range 0 to 255)",
"description": "RAN Area Code",
"type": "number"
},
"reserved": {
"default": false,
"title": "Reserved",
"description": "True if the cell is reserved for operator use.",
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"nssai": {
"title": "AMF slices configuration",
"description": "AMF slices configuration.",
"patternProperties": {
".*": {
"properties": {
"sst": {
"default": 1,
"title": "Slice Service Type",
"description": "Integer (range 1 to 255).",
"type": "number"
},
"sd": {
"default": 50,
"title": "Slice Differentiator",
"description": "Optional integer (range 0 to 0xFFFFFE)",
"type": "number"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"use_ipv4": {
"default": false,
"title": "Use IPv4",
"description": "Set to true to use IPv4 for AMF / MME addresses",
"type": "boolean"
} }
} }
} }
...@@ -33,108 +33,23 @@ ...@@ -33,108 +33,23 @@
"type": "number", "type": "number",
"default": 40 "default": 40
}, },
"amf_list": { "ssb-nr-arfcn": {
"title": "AMF list", "title": "SSB NR ARFCN",
"description": "Optionnal. List of AMF to which the gNodeB is connected", "description": "SSB NR ARFCN",
"patternProperties": {
".*": {
"properties": {
"amf_addr": {
"title": "AMF Address",
"description": "IP address (and optional port) of NGAP SCTP connection to the AMF. The default port is 38412.",
"type": "string"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"gnb_id": {
"title": "gNB ID",
"description": "gNB ID",
"type": "string",
"default": "0x12345"
},
"pci": {
"title": "Physical Cell ID",
"description": "Physical Cell ID",
"type": "number", "type": "number",
"default": 1 "default":
}, },
"ssb_pos_bitmap": { "imsi": {
"title": "SSB Position Bitmap", "title": "IMSI",
"description": "SSB position bitmap in bits (4, 8 or 64 bits depending on the DL frequency).", "description": "IMSI",
"type": "string", "type": "string",
"default": 1000 "default": 001010123456789
}, },
"plmn_list": { "k": {
"title": "PLMN list", "title": "K",
"description": "List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)", "description": "Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK).",
"patternProperties": { "type": "string",
".*": { "default": 00112233445566778899aabbccddeeff
"properties": {
"plmn": {
"default": "00101",
"title": "Public Land Mobile Network",
"description": "Public Land Mobile Network",
"type": "string"
},
"tac": {
"default": 100,
"title": "Tracking Area Code",
"description": "Integer (range 0 to 16777215)",
"type": "number"
},
"ranac": {
"title": "Optional integer (range 0 to 255)",
"description": "RAN Area Code",
"type": "number"
},
"reserved": {
"default": false,
"title": "Reserved",
"description": "True if the cell is reserved for operator use.",
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"nssai": {
"title": "AMF slices configuration",
"description": "AMF slices configuration.",
"patternProperties": {
".*": {
"properties": {
"sst": {
"default": 1,
"title": "Slice Service Type",
"description": "Integer (range 1 to 255).",
"type": "number"
},
"sd": {
"default": 50,
"title": "Slice Differentiator",
"description": "Optional integer (range 0 to 0xFFFFFE)",
"type": "number"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"use_ipv4": {
"default": false,
"title": "Use IPv4",
"description": "Set to true to use IPv4 for AMF / MME addresses",
"type": "boolean"
} }
} }
} }
...@@ -15,126 +15,29 @@ ...@@ -15,126 +15,29 @@
"type": "number", "type": "number",
"default": 40 "default": 40
}, },
"dl_nr_arfcn": { "dl_earfcn": {
"title": "DL NR ARFCN", "title": "DL EARFCN",
"description": "Downlink NR Absolute Radio Frequency Channel Number of the cell", "description": "Downlink E-UTRA Absolute Radio Frequency Channel Number of the cell",
"type": "number", "type": "number",
"default": 520000 "default": 38050
}, },
"nr_band": { "n_rb_dl": {
"title": "NR band", "title": "DL RB",
"description": "NR band number", "description": "number of DL resource blocks",
"type": "number", "type": "number",
"default": 38 "default": 100
}, },
"nr_bandwidth": { "imsi": {
"title": "Bandwidth", "title": "IMSI",
"description": "Downlink Bandwidth (in MHz)", "description": "IMSI",
"type": "number",
"default": 40
},
"amf_list": {
"title": "AMF list",
"description": "Optionnal. List of AMF to which the gNodeB is connected",
"patternProperties": {
".*": {
"properties": {
"amf_addr": {
"title": "AMF Address",
"description": "IP address (and optional port) of NGAP SCTP connection to the AMF. The default port is 38412.",
"type": "string"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"gnb_id": {
"title": "gNB ID",
"description": "gNB ID",
"type": "string", "type": "string",
"default": "0x12345" "default": 001010123456789
}, },
"pci": { "k": {
"title": "Physical Cell ID", "title": "K",
"description": "Physical Cell ID", "description": "Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK).",
"type": "number",
"default": 1
},
"ssb_pos_bitmap": {
"title": "SSB Position Bitmap",
"description": "SSB position bitmap in bits (4, 8 or 64 bits depending on the DL frequency).",
"type": "string", "type": "string",
"default": 10000000 "default": 00112233445566778899aabbccddeeff
},
"plmn_list": {
"title": "PLMN list",
"description": "List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)",
"patternProperties": {
".*": {
"properties": {
"plmn": {
"default": "00101",
"title": "Public Land Mobile Network",
"description": "Public Land Mobile Network",
"type": "string"
},
"tac": {
"default": 100,
"title": "Tracking Area Code",
"description": "Integer (range 0 to 16777215)",
"type": "number"
},
"ranac": {
"title": "Optional integer (range 0 to 255)",
"description": "RAN Area Code",
"type": "number"
},
"reserved": {
"default": false,
"title": "Reserved",
"description": "True if the cell is reserved for operator use.",
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"nssai": {
"title": "AMF slices configuration",
"description": "AMF slices configuration.",
"patternProperties": {
".*": {
"properties": {
"sst": {
"default": 1,
"title": "Slice Service Type",
"description": "Integer (range 1 to 255).",
"type": "number"
},
"sd": {
"default": 50,
"title": "Slice Differentiator",
"description": "Optional integer (range 0 to 0xFFFFFE)",
"type": "number"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"use_ipv4": {
"default": false,
"title": "Use IPv4",
"description": "Set to true to use IPv4 for AMF / MME addresses",
"type": "boolean"
} }
} }
} }
...@@ -33,108 +33,23 @@ ...@@ -33,108 +33,23 @@
"type": "number", "type": "number",
"default": 40 "default": 40
}, },
"amf_list": { "ssb-nr-arfcn": {
"title": "AMF list", "title": "SSB NR ARFCN",
"description": "Optionnal. List of AMF to which the gNodeB is connected", "description": "SSB NR ARFCN",
"patternProperties": {
".*": {
"properties": {
"amf_addr": {
"title": "AMF Address",
"description": "IP address (and optional port) of NGAP SCTP connection to the AMF. The default port is 38412.",
"type": "string"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"gnb_id": {
"title": "gNB ID",
"description": "gNB ID",
"type": "string",
"default": "0x12345"
},
"pci": {
"title": "Physical Cell ID",
"description": "Physical Cell ID",
"type": "number", "type": "number",
"default": 1 "default":
}, },
"ssb_pos_bitmap": { "imsi": {
"title": "SSB Position Bitmap", "title": "IMSI",
"description": "SSB position bitmap in bits (4, 8 or 64 bits depending on the DL frequency).", "description": "IMSI",
"type": "string", "type": "string",
"default": 10000000 "default": 001010123456789
}, },
"plmn_list": { "k": {
"title": "PLMN list", "title": "K",
"description": "List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)", "description": "Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK).",
"patternProperties": { "type": "string",
".*": { "default": 00112233445566778899aabbccddeeff
"properties": {
"plmn": {
"default": "00101",
"title": "Public Land Mobile Network",
"description": "Public Land Mobile Network",
"type": "string"
},
"tac": {
"default": 100,
"title": "Tracking Area Code",
"description": "Integer (range 0 to 16777215)",
"type": "number"
},
"ranac": {
"title": "Optional integer (range 0 to 255)",
"description": "RAN Area Code",
"type": "number"
},
"reserved": {
"default": false,
"title": "Reserved",
"description": "True if the cell is reserved for operator use.",
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"nssai": {
"title": "AMF slices configuration",
"description": "AMF slices configuration.",
"patternProperties": {
".*": {
"properties": {
"sst": {
"default": 1,
"title": "Slice Service Type",
"description": "Integer (range 1 to 255).",
"type": "number"
},
"sd": {
"default": 50,
"title": "Slice Differentiator",
"description": "Optional integer (range 0 to 0xFFFFFE)",
"type": "number"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"use_ipv4": {
"default": false,
"title": "Use IPv4",
"description": "Set to true to use IPv4 for AMF / MME addresses",
"type": "boolean"
} }
} }
} }
...@@ -15,126 +15,29 @@ ...@@ -15,126 +15,29 @@
"type": "number", "type": "number",
"default": 40 "default": 40
}, },
"dl_nr_arfcn": { "dl_earfcn": {
"title": "DL NR ARFCN", "title": "DL EARFCN",
"description": "Downlink NR Absolute Radio Frequency Channel Number of the cell", "description": "Downlink E-UTRA Absolute Radio Frequency Channel Number of the cell",
"type": "number", "type": "number",
"default": 632628 "default": 42590
}, },
"nr_band": { "n_rb_dl": {
"title": "NR band", "title": "DL RB",
"description": "NR band number", "description": "number of DL resource blocks",
"type": "number", "type": "number",
"default": 78 "default": 100
},
"nr_bandwidth": {
"title": "Bandwidth",
"description": "Downlink Bandwidth (in MHz)",
"type": "number",
"default": 40
},
"amf_list": {
"title": "AMF list",
"description": "Optionnal. List of AMF to which the gNodeB is connected",
"patternProperties": {
".*": {
"properties": {
"amf_addr": {
"title": "AMF Address",
"description": "IP address (and optional port) of NGAP SCTP connection to the AMF. The default port is 38412.",
"type": "string"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
}, },
"gnb_id": { "imsi": {
"title": "gNB ID", "title": "IMSI",
"description": "gNB ID", "description": "IMSI",
"type": "string", "type": "string",
"default": "0x12345" "default": 001010123456789
}, },
"pci": { "k": {
"title": "Physical Cell ID", "title": "K",
"description": "Physical Cell ID", "description": "Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK).",
"type": "number",
"default": 1
},
"ssb_pos_bitmap": {
"title": "SSB Position Bitmap",
"description": "SSB position bitmap in bits (4, 8 or 64 bits depending on the DL frequency).",
"type": "string", "type": "string",
"default": 10000000 "default": 00112233445566778899aabbccddeeff
},
"plmn_list": {
"title": "PLMN list",
"description": "List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)",
"patternProperties": {
".*": {
"properties": {
"plmn": {
"default": "00101",
"title": "Public Land Mobile Network",
"description": "Public Land Mobile Network",
"type": "string"
},
"tac": {
"default": 100,
"title": "Tracking Area Code",
"description": "Integer (range 0 to 16777215)",
"type": "number"
},
"ranac": {
"title": "Optional integer (range 0 to 255)",
"description": "RAN Area Code",
"type": "number"
},
"reserved": {
"default": false,
"title": "Reserved",
"description": "True if the cell is reserved for operator use.",
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"nssai": {
"title": "AMF slices configuration",
"description": "AMF slices configuration.",
"patternProperties": {
".*": {
"properties": {
"sst": {
"default": 1,
"title": "Slice Service Type",
"description": "Integer (range 1 to 255).",
"type": "number"
},
"sd": {
"default": 50,
"title": "Slice Differentiator",
"description": "Optional integer (range 0 to 0xFFFFFE)",
"type": "number"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"use_ipv4": {
"default": false,
"title": "Use IPv4",
"description": "Set to true to use IPv4 for AMF / MME addresses",
"type": "boolean"
} }
} }
} }
...@@ -33,108 +33,23 @@ ...@@ -33,108 +33,23 @@
"type": "number", "type": "number",
"default": 40 "default": 40
}, },
"amf_list": { "ssb-nr-arfcn": {
"title": "AMF list", "title": "SSB NR ARFCN",
"description": "Optionnal. List of AMF to which the gNodeB is connected", "description": "SSB NR ARFCN",
"patternProperties": {
".*": {
"properties": {
"amf_addr": {
"title": "AMF Address",
"description": "IP address (and optional port) of NGAP SCTP connection to the AMF. The default port is 38412.",
"type": "string"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"gnb_id": {
"title": "gNB ID",
"description": "gNB ID",
"type": "string",
"default": "0x12345"
},
"pci": {
"title": "Physical Cell ID",
"description": "Physical Cell ID",
"type": "number", "type": "number",
"default": 1 "default":
}, },
"ssb_pos_bitmap": { "imsi": {
"title": "SSB Position Bitmap", "title": "IMSI",
"description": "SSB position bitmap in bits (4, 8 or 64 bits depending on the DL frequency).", "description": "IMSI",
"type": "string", "type": "string",
"default": 10000000 "default": 001010123456789
}, },
"plmn_list": { "k": {
"title": "PLMN list", "title": "K",
"description": "List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)", "description": "Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK).",
"patternProperties": { "type": "string",
".*": { "default": 00112233445566778899aabbccddeeff
"properties": {
"plmn": {
"default": "00101",
"title": "Public Land Mobile Network",
"description": "Public Land Mobile Network",
"type": "string"
},
"tac": {
"default": 100,
"title": "Tracking Area Code",
"description": "Integer (range 0 to 16777215)",
"type": "number"
},
"ranac": {
"title": "Optional integer (range 0 to 255)",
"description": "RAN Area Code",
"type": "number"
},
"reserved": {
"default": false,
"title": "Reserved",
"description": "True if the cell is reserved for operator use.",
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"nssai": {
"title": "AMF slices configuration",
"description": "AMF slices configuration.",
"patternProperties": {
".*": {
"properties": {
"sst": {
"default": 1,
"title": "Slice Service Type",
"description": "Integer (range 1 to 255).",
"type": "number"
},
"sd": {
"default": 50,
"title": "Slice Differentiator",
"description": "Optional integer (range 0 to 0xFFFFFE)",
"type": "number"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"use_ipv4": {
"default": false,
"title": "Use IPv4",
"description": "Set to true to use IPv4 for AMF / MME addresses",
"type": "boolean"
} }
} }
} }
...@@ -15,126 +15,29 @@ ...@@ -15,126 +15,29 @@
"type": "number", "type": "number",
"default": 40 "default": 40
}, },
"dl_nr_arfcn": { "dl_earfcn": {
"title": "DL NR ARFCN", "title": "DL EARFCN",
"description": "Downlink NR Absolute Radio Frequency Channel Number of the cell", "description": "Downlink E-UTRA Absolute Radio Frequency Channel Number of the cell",
"type": "number", "type": "number",
"default": 646666 "default": 44590
}, },
"nr_band": { "n_rb_dl": {
"title": "NR band", "title": "DL RB",
"description": "NR band number", "description": "number of DL resource blocks",
"type": "number", "type": "number",
"default": 78 "default": 100
},
"nr_bandwidth": {
"title": "Bandwidth",
"description": "Downlink Bandwidth (in MHz)",
"type": "number",
"default": 40
},
"amf_list": {
"title": "AMF list",
"description": "Optionnal. List of AMF to which the gNodeB is connected",
"patternProperties": {
".*": {
"properties": {
"amf_addr": {
"title": "AMF Address",
"description": "IP address (and optional port) of NGAP SCTP connection to the AMF. The default port is 38412.",
"type": "string"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
}, },
"gnb_id": { "imsi": {
"title": "gNB ID", "title": "IMSI",
"description": "gNB ID", "description": "IMSI",
"type": "string", "type": "string",
"default": "0x12345" "default": 001010123456789
}, },
"pci": { "k": {
"title": "Physical Cell ID", "title": "K",
"description": "Physical Cell ID", "description": "Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK).",
"type": "number",
"default": 1
},
"ssb_pos_bitmap": {
"title": "SSB Position Bitmap",
"description": "SSB position bitmap in bits (4, 8 or 64 bits depending on the DL frequency).",
"type": "string", "type": "string",
"default": 10000000 "default": 00112233445566778899aabbccddeeff
},
"plmn_list": {
"title": "PLMN list",
"description": "List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)",
"patternProperties": {
".*": {
"properties": {
"plmn": {
"default": "00101",
"title": "Public Land Mobile Network",
"description": "Public Land Mobile Network",
"type": "string"
},
"tac": {
"default": 100,
"title": "Tracking Area Code",
"description": "Integer (range 0 to 16777215)",
"type": "number"
},
"ranac": {
"title": "Optional integer (range 0 to 255)",
"description": "RAN Area Code",
"type": "number"
},
"reserved": {
"default": false,
"title": "Reserved",
"description": "True if the cell is reserved for operator use.",
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"nssai": {
"title": "AMF slices configuration",
"description": "AMF slices configuration.",
"patternProperties": {
".*": {
"properties": {
"sst": {
"default": 1,
"title": "Slice Service Type",
"description": "Integer (range 1 to 255).",
"type": "number"
},
"sd": {
"default": 50,
"title": "Slice Differentiator",
"description": "Optional integer (range 0 to 0xFFFFFE)",
"type": "number"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"use_ipv4": {
"default": false,
"title": "Use IPv4",
"description": "Set to true to use IPv4 for AMF / MME addresses",
"type": "boolean"
} }
} }
} }
...@@ -33,108 +33,23 @@ ...@@ -33,108 +33,23 @@
"type": "number", "type": "number",
"default": 40 "default": 40
}, },
"amf_list": { "ssb-nr-arfcn": {
"title": "AMF list", "title": "SSB NR ARFCN",
"description": "Optionnal. List of AMF to which the gNodeB is connected", "description": "SSB NR ARFCN",
"patternProperties": {
".*": {
"properties": {
"amf_addr": {
"title": "AMF Address",
"description": "IP address (and optional port) of NGAP SCTP connection to the AMF. The default port is 38412.",
"type": "string"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"gnb_id": {
"title": "gNB ID",
"description": "gNB ID",
"type": "string",
"default": "0x12345"
},
"pci": {
"title": "Physical Cell ID",
"description": "Physical Cell ID",
"type": "number", "type": "number",
"default": 1 "default":
}, },
"ssb_pos_bitmap": { "imsi": {
"title": "SSB Position Bitmap", "title": "IMSI",
"description": "SSB position bitmap in bits (4, 8 or 64 bits depending on the DL frequency).", "description": "IMSI",
"type": "string", "type": "string",
"default": 10000000 "default": 001010123456789
}, },
"plmn_list": { "k": {
"title": "PLMN list", "title": "K",
"description": "List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)", "description": "Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK).",
"patternProperties": { "type": "string",
".*": { "default": 00112233445566778899aabbccddeeff
"properties": {
"plmn": {
"default": "00101",
"title": "Public Land Mobile Network",
"description": "Public Land Mobile Network",
"type": "string"
},
"tac": {
"default": 100,
"title": "Tracking Area Code",
"description": "Integer (range 0 to 16777215)",
"type": "number"
},
"ranac": {
"title": "Optional integer (range 0 to 255)",
"description": "RAN Area Code",
"type": "number"
},
"reserved": {
"default": false,
"title": "Reserved",
"description": "True if the cell is reserved for operator use.",
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"nssai": {
"title": "AMF slices configuration",
"description": "AMF slices configuration.",
"patternProperties": {
".*": {
"properties": {
"sst": {
"default": 1,
"title": "Slice Service Type",
"description": "Integer (range 1 to 255).",
"type": "number"
},
"sd": {
"default": 50,
"title": "Slice Differentiator",
"description": "Optional integer (range 0 to 0xFFFFFE)",
"type": "number"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
},
"use_ipv4": {
"default": false,
"title": "Use IPv4",
"description": "Set to true to use IPv4 for AMF / MME addresses",
"type": "boolean"
} }
} }
} }
...@@ -38,12 +38,6 @@ ...@@ -38,12 +38,6 @@
"description": "Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK).", "description": "Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK).",
"type": "string", "type": "string",
"default": {{ default_lte_k }} "default": {{ default_lte_k }}
},
"use_ipv4": {
"default": false,
"title": "Use IPv4",
"description": "Set to true to use IPv4 for AMF / MME addresses",
"type": "boolean"
} }
} }
} }
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
"title": "SSB NR ARFCN", "title": "SSB NR ARFCN",
"description": "SSB NR ARFCN", "description": "SSB NR ARFCN",
"type": "number", "type": "number",
"default": {{ default-ssb-nr-arfcn }} "default": {{ default_ssb_nr_arfcn }}
}, },
"imsi": { "imsi": {
"title": "IMSI", "title": "IMSI",
...@@ -50,12 +50,6 @@ ...@@ -50,12 +50,6 @@
"description": "Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK).", "description": "Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK).",
"type": "string", "type": "string",
"default": {{ default_nr_k }} "default": {{ default_nr_k }}
},
"use_ipv4": {
"default": false,
"title": "Use IPv4",
"description": "Set to true to use IPv4 for AMF / MME addresses",
"type": "boolean"
} }
} }
} }
...@@ -130,6 +130,10 @@ with open('instance-enb-input-schema.jinja2.json', 'r') as f: ...@@ -130,6 +130,10 @@ with open('instance-enb-input-schema.jinja2.json', 'r') as f:
instance_enb_json_template = Template(f.read()) instance_enb_json_template = Template(f.read())
with open('instance-gnb-input-schema.jinja2.json', 'r') as f: with open('instance-gnb-input-schema.jinja2.json', 'r') as f:
instance_gnb_json_template = Template(f.read()) instance_gnb_json_template = Template(f.read())
with open('instance-ue-lte-input-schema.jinja2.json', 'r') as f:
instance_ue_lte_json_template = Template(f.read())
with open('instance-ue-nr-input-schema.jinja2.json', 'r') as f:
instance_ue_nr_json_template = Template(f.read())
with open('software.jinja2.cfg', 'r') as f: with open('software.jinja2.cfg', 'r') as f:
software_template = Template(f.read()) software_template = Template(f.read())
with open('test/test.jinja2.py', 'r') as f: with open('test/test.jinja2.py', 'r') as f:
...@@ -152,5 +156,10 @@ for rf_mode_context in rf_mode_context_list: ...@@ -152,5 +156,10 @@ for rf_mode_context in rf_mode_context_list:
'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) + '\n') f.write(instance_enb_json_template.render(**rf_mode_context, **global_context, epc='epc' in software_type) + '\n')
else: elif software_type in ['gnb', 'gnb-epc']:
f.write(instance_gnb_json_template.render(**rf_mode_context, **global_context, epc='epc' in software_type) + '\n') f.write(instance_gnb_json_template.render(**rf_mode_context, **global_context, epc='epc' in software_type) + '\n')
elif software_type in ['ue-lte']:
f.write(instance_ue_lte_json_template.render(**rf_mode_context, **global_context) + '\n')
else:
f.write(instance_ue_nr_json_template.render(**rf_mode_context, **global_context) + '\n')
...@@ -140,6 +140,20 @@ epc_param_dict = { ...@@ -140,6 +140,20 @@ epc_param_dict = {
'epc_plmn': '00102', 'epc_plmn': '00102',
} }
ue_param_dict = {
'testing': True,
'tx_gain': 17,
'rx_gain': 17,
'dl_earfcn': 325320,
'n_rb_dl': 50,
'dl_nr_arfcn': 325320,
'nr_band': 99,
'nr_bandwidth': 50,
'ssb-nr-arfcn': 377790,
'imsi': "001010123456789",
'k': "00112233445566778899aabbccddeeff",
}
def test_enb_conf(self): def test_enb_conf(self):
conf_file = glob.glob(os.path.join( conf_file = glob.glob(os.path.join(
...@@ -309,3 +323,33 @@ class TestGNBEPCSimCard(ORSTestCase): ...@@ -309,3 +323,33 @@ class TestGNBEPCSimCard(ORSTestCase):
def test_sim_card(self): def test_sim_card(self):
self.slap.waitForInstance() # Wait until publish is done self.slap.waitForInstance() # Wait until publish is done
test_ue_db(self) test_ue_db(self)
class TestUELTESimCard(ORSTestCase):
@classmethod
def getInstanceParameterDict(cls):
return {'_': json.dumps(epc_param_dict)}
@classmethod
def getInstanceSoftwareType(cls):
return "ue-lte"
def test_ue_lte_conf(self):
conf_file = glob.glob(os.path.join(
self.slap.instance_directory, '*', 'etc', 'ue-lte.cfg'))[0]
with open(conf_file, 'r') as f:
conf = yaml.load(f)
self.assertEqual(conf['dl_earfcn'], ue_param_dict['dl_earfcn'])
class TestUENRSimCard(ORSTestCase):
@classmethod
def getInstanceParameterDict(cls):
return {'_': json.dumps(epc_param_dict)}
@classmethod
def getInstanceSoftwareType(cls):
return "ue-nr"
def test_ue_lte_conf(self):
conf_file = glob.glob(os.path.join(
self.slap.instance_directory, '*', 'etc', 'ue-nr.cfg'))[0]
with open(conf_file, 'r') as f:
conf = yaml.load(f)
self.assertEqual(conf['ssb-nr-arfcn'], ue_param_dict['ssb-nr-arfcn'])
...@@ -140,6 +140,20 @@ epc_param_dict = { ...@@ -140,6 +140,20 @@ epc_param_dict = {
'epc_plmn': '00102', 'epc_plmn': '00102',
} }
ue_param_dict = {
'testing': True,
'tx_gain': 17,
'rx_gain': 17,
'dl_earfcn': 325320,
'n_rb_dl': 50,
'dl_nr_arfcn': 325320,
'nr_band': 99,
'nr_bandwidth': 50,
'ssb-nr-arfcn': 377790,
'imsi': "001010123456789",
'k': "00112233445566778899aabbccddeeff",
}
def test_enb_conf(self): def test_enb_conf(self):
conf_file = glob.glob(os.path.join( conf_file = glob.glob(os.path.join(
...@@ -309,3 +323,33 @@ class TestGNBEPCSimCard(ORSTestCase): ...@@ -309,3 +323,33 @@ class TestGNBEPCSimCard(ORSTestCase):
def test_sim_card(self): def test_sim_card(self):
self.slap.waitForInstance() # Wait until publish is done self.slap.waitForInstance() # Wait until publish is done
test_ue_db(self) test_ue_db(self)
class TestUELTESimCard(ORSTestCase):
@classmethod
def getInstanceParameterDict(cls):
return {'_': json.dumps(epc_param_dict)}
@classmethod
def getInstanceSoftwareType(cls):
return "ue-lte"
def test_ue_lte_conf(self):
conf_file = glob.glob(os.path.join(
self.slap.instance_directory, '*', 'etc', 'ue-lte.cfg'))[0]
with open(conf_file, 'r') as f:
conf = yaml.load(f)
self.assertEqual(conf['dl_earfcn'], ue_param_dict['dl_earfcn'])
class TestUENRSimCard(ORSTestCase):
@classmethod
def getInstanceParameterDict(cls):
return {'_': json.dumps(epc_param_dict)}
@classmethod
def getInstanceSoftwareType(cls):
return "ue-nr"
def test_ue_lte_conf(self):
conf_file = glob.glob(os.path.join(
self.slap.instance_directory, '*', 'etc', 'ue-nr.cfg'))[0]
with open(conf_file, 'r') as f:
conf = yaml.load(f)
self.assertEqual(conf['ssb-nr-arfcn'], ue_param_dict['ssb-nr-arfcn'])
...@@ -140,6 +140,20 @@ epc_param_dict = { ...@@ -140,6 +140,20 @@ epc_param_dict = {
'epc_plmn': '00102', 'epc_plmn': '00102',
} }
ue_param_dict = {
'testing': True,
'tx_gain': 17,
'rx_gain': 17,
'dl_earfcn': 325320,
'n_rb_dl': 50,
'dl_nr_arfcn': 325320,
'nr_band': 99,
'nr_bandwidth': 50,
'ssb-nr-arfcn': 377790,
'imsi': "001010123456789",
'k': "00112233445566778899aabbccddeeff",
}
def test_enb_conf(self): def test_enb_conf(self):
conf_file = glob.glob(os.path.join( conf_file = glob.glob(os.path.join(
...@@ -309,3 +323,33 @@ class TestGNBEPCSimCard(ORSTestCase): ...@@ -309,3 +323,33 @@ class TestGNBEPCSimCard(ORSTestCase):
def test_sim_card(self): def test_sim_card(self):
self.slap.waitForInstance() # Wait until publish is done self.slap.waitForInstance() # Wait until publish is done
test_ue_db(self) test_ue_db(self)
class TestUELTESimCard(ORSTestCase):
@classmethod
def getInstanceParameterDict(cls):
return {'_': json.dumps(epc_param_dict)}
@classmethod
def getInstanceSoftwareType(cls):
return "ue-lte"
def test_ue_lte_conf(self):
conf_file = glob.glob(os.path.join(
self.slap.instance_directory, '*', 'etc', 'ue-lte.cfg'))[0]
with open(conf_file, 'r') as f:
conf = yaml.load(f)
self.assertEqual(conf['dl_earfcn'], ue_param_dict['dl_earfcn'])
class TestUENRSimCard(ORSTestCase):
@classmethod
def getInstanceParameterDict(cls):
return {'_': json.dumps(epc_param_dict)}
@classmethod
def getInstanceSoftwareType(cls):
return "ue-nr"
def test_ue_lte_conf(self):
conf_file = glob.glob(os.path.join(
self.slap.instance_directory, '*', 'etc', 'ue-nr.cfg'))[0]
with open(conf_file, 'r') as f:
conf = yaml.load(f)
self.assertEqual(conf['ssb-nr-arfcn'], ue_param_dict['ssb-nr-arfcn'])
...@@ -140,6 +140,20 @@ epc_param_dict = { ...@@ -140,6 +140,20 @@ epc_param_dict = {
'epc_plmn': '00102', 'epc_plmn': '00102',
} }
ue_param_dict = {
'testing': True,
'tx_gain': 17,
'rx_gain': 17,
'dl_earfcn': 325320,
'n_rb_dl': 50,
'dl_nr_arfcn': 325320,
'nr_band': 99,
'nr_bandwidth': 50,
'ssb-nr-arfcn': 377790,
'imsi': "001010123456789",
'k': "00112233445566778899aabbccddeeff",
}
def test_enb_conf(self): def test_enb_conf(self):
conf_file = glob.glob(os.path.join( conf_file = glob.glob(os.path.join(
...@@ -309,3 +323,33 @@ class TestGNBEPCSimCard(ORSTestCase): ...@@ -309,3 +323,33 @@ class TestGNBEPCSimCard(ORSTestCase):
def test_sim_card(self): def test_sim_card(self):
self.slap.waitForInstance() # Wait until publish is done self.slap.waitForInstance() # Wait until publish is done
test_ue_db(self) test_ue_db(self)
class TestUELTESimCard(ORSTestCase):
@classmethod
def getInstanceParameterDict(cls):
return {'_': json.dumps(epc_param_dict)}
@classmethod
def getInstanceSoftwareType(cls):
return "ue-lte"
def test_ue_lte_conf(self):
conf_file = glob.glob(os.path.join(
self.slap.instance_directory, '*', 'etc', 'ue-lte.cfg'))[0]
with open(conf_file, 'r') as f:
conf = yaml.load(f)
self.assertEqual(conf['dl_earfcn'], ue_param_dict['dl_earfcn'])
class TestUENRSimCard(ORSTestCase):
@classmethod
def getInstanceParameterDict(cls):
return {'_': json.dumps(epc_param_dict)}
@classmethod
def getInstanceSoftwareType(cls):
return "ue-nr"
def test_ue_lte_conf(self):
conf_file = glob.glob(os.path.join(
self.slap.instance_directory, '*', 'etc', 'ue-nr.cfg'))[0]
with open(conf_file, 'r') as f:
conf = yaml.load(f)
self.assertEqual(conf['ssb-nr-arfcn'], ue_param_dict['ssb-nr-arfcn'])
...@@ -140,6 +140,20 @@ epc_param_dict = { ...@@ -140,6 +140,20 @@ epc_param_dict = {
'epc_plmn': '00102', 'epc_plmn': '00102',
} }
ue_param_dict = {
'testing': True,
'tx_gain': 17,
'rx_gain': 17,
'dl_earfcn': 325320,
'n_rb_dl': 50,
'dl_nr_arfcn': 325320,
'nr_band': 99,
'nr_bandwidth': 50,
'ssb-nr-arfcn': 377790,
'imsi': "001010123456789",
'k': "00112233445566778899aabbccddeeff",
}
def test_enb_conf(self): def test_enb_conf(self):
conf_file = glob.glob(os.path.join( conf_file = glob.glob(os.path.join(
...@@ -309,3 +323,33 @@ class TestGNBEPCSimCard(ORSTestCase): ...@@ -309,3 +323,33 @@ class TestGNBEPCSimCard(ORSTestCase):
def test_sim_card(self): def test_sim_card(self):
self.slap.waitForInstance() # Wait until publish is done self.slap.waitForInstance() # Wait until publish is done
test_ue_db(self) test_ue_db(self)
class TestUELTESimCard(ORSTestCase):
@classmethod
def getInstanceParameterDict(cls):
return {'_': json.dumps(epc_param_dict)}
@classmethod
def getInstanceSoftwareType(cls):
return "ue-lte"
def test_ue_lte_conf(self):
conf_file = glob.glob(os.path.join(
self.slap.instance_directory, '*', 'etc', 'ue-lte.cfg'))[0]
with open(conf_file, 'r') as f:
conf = yaml.load(f)
self.assertEqual(conf['dl_earfcn'], ue_param_dict['dl_earfcn'])
class TestUENRSimCard(ORSTestCase):
@classmethod
def getInstanceParameterDict(cls):
return {'_': json.dumps(epc_param_dict)}
@classmethod
def getInstanceSoftwareType(cls):
return "ue-nr"
def test_ue_lte_conf(self):
conf_file = glob.glob(os.path.join(
self.slap.instance_directory, '*', 'etc', 'ue-nr.cfg'))[0]
with open(conf_file, 'r') as f:
conf = yaml.load(f)
self.assertEqual(conf['ssb-nr-arfcn'], ue_param_dict['ssb-nr-arfcn'])
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