{
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "title": "Input Parameters",
  "properties": {
    "nr_bandwidth": {
      "title": "Bandwidth",
      "description": "Downlink Bandwidth (in MHz)",
      "type": "number",
      "default": 40
    },
    "n_antenna_dl": {
      "title": "Number of DL antennas",
      "description": "1, 2, 4 or 8. Number of DL antennas.",
      "type": "number",
      "default": 2
    },
    "n_antenna_ul": {
      "title": "Number of UL antennas",
      "description": "1, 2, 4 or 8. Number of UL antennas.",
      "type": "number",
      "default": 2
    },
    "tdd_ul_dl_config": {
      "title": "TDD",
      "description": "TDD",
      "type": "string",
      "enum": [
        "5ms 2UL 7DL 4/6 (default)",
        "2.5ms 1UL 3DL 2/10",
        "5ms 8UL 1DL 2/10 (maximum uplink)"
      ],
      "default": "5ms 2UL 7DL 4/6 (default)"
    },
    "dl_nr_arfcn": {
      "title": "DL NR ARFCN",
      "description": "Downlink NR Absolute Radio Frequency Channel Number of the cell",
      "type": "number"
    },
    "nr_band": {
      "title": "NR band",
      "description": "NR band number",
      "type": "number"
    },
    "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",
      "default": 10000000
    },
    "pci": {
      "title": "Physical Cell ID",
      "description": "Physical Cell ID",
      "type": "number",
      "default": 500
    },
    "cell_id": {
      "title": "Cell ID",
      "description": "Cell ID",
      "type": "string",
      "default": "0x01"
    },
    "tx_gain": {
      "title": "Tx gain",
      "description": "Tx gain (in dB)",
      "type": "number"
    },
    "rx_gain": {
      "title": "Rx gain",
      "description": "Rx gain (in dB)",
      "type": "number"
    },
    "gnb_id": {
      "title": "gNB ID",
      "description": "gNB ID",
      "type": "string",
      "default": "0x12345"
    },
    "gnb_id_bits": {
      "title": "gNB ID bits",
      "description": "Number of bits for the gNodeB global identifier. (range 22 to 32)",
      "type": "number",
      "default": 28
    },
    "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": {}
    },
    "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": "0x000032",
              "title": "Slice Differentiator",
              "description": "Optional integer (range 0 to 0xFFFFFE)",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "object",
      "default": {}
    },
    "nr_handover_a3_offset": {
      "title": "A3 offset for NR handover",
      "description": "RSRP gain offset between gNBs which will trigger handover",
      "type": "number",
      "default": 6
    },
    "nr_handover_time_to_trigger": {
      "title": "Time to Trigger for NR handover",
      "description": "Time to triger after which NR handover will be triggerd if A3 offset is reached",
      "type": "number",
      "enum": [
        0,
        40,
        64,
        80,
        100,
        128,
        160,
        256,
        320,
        480,
        512,
        640,
        1024,
        1280,
        2560,
        5120
      ],
      "default": 100
    },
    "ncell_list": {
      "title": "Neighbour Cell Info",
      "description": "Neighbour Cell Info",
      "patternProperties": {
        ".*": {
          "properties": {
            "dl_nr_arfcn": {
              "title": "DL NR ARFCN",
              "description": "Downlink NR Absolute Radio Frequency Channel Number of the neighbour cell",
              "type": "number"
            },
            "ssb_nr_arfcn": {
              "title": "SSB NR ARFCN",
              "description": "SSB NR Absolute Radio Frequency Channel Number of the neighbour cell",
              "type": "number"
            },
            "pci": {
              "title": "Physical Cell ID",
              "description": "Physical Cell ID of the neighbour cell",
              "type": "number"
            },
            "nr_cell_id": {
              "title": "NR Cell ID",
              "description": "Concatenation of gnb_id and cell_id of the neighbour cell",
              "type": "string"
            },
            "gnb_id_bits": {
              "title": "gNB ID bits",
              "description": "Number of bits for the gNodeB global identifier. (range 22 to 32)",
              "type": "number"
            },
            "nr_band": {
              "title": "NR band",
              "description": "NR band number",
              "type": "number"
            },
            "tac": {
              "title": "Tracking Area Code",
              "description": "Integer (range 0 to 16777215)",
              "type": "number"
            }
          },
          "type": "object"
        }
      },
      "type": "object",
      "default": {}
    },
    "xn_peers": {
      "title": "XN Peers",
      "description": "XN Peers",
      "patternProperties": {
        ".*": {
          "properties": {
            "xn_addr": {
              "title": "XN Address",
              "description": "XN Address of the neighbour cell (gNB Address)",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "object",
      "default": {}
    },
    "websocket_password": {
      "title": "Websocket password",
      "description": "Activates websocket for remote control and sets password",
      "type": "string"
    },
    "inactivity_timer": {
      "title": "Inactivity Timer",
      "description": "Send RRC connection release after this time (in ms) of network inactivity.",
      "type": "number",
      "default": 10000
    },
    "log_phy_debug": {
      "title": "Physical layer log debug",
      "description": "Enable debug mode for physical layer logs",
      "type": "boolean",
      "default": false
    },
    "gps_sync": {
      "default": false,
      "title": "GPS synchronisation",
      "description": "True if GPS should be used for synchronisation",
      "type": "boolean"
    },
    "disable_sdr": {
      "default": false,
      "title": "Disable SDR",
      "description": "Disables radio",
      "type": "boolean"
    },
    "use_ipv4": {
      "default": false,
      "title": "Use IPv4",
      "description": "Set to true to use IPv4 for AMF / MME addresses",
      "type": "boolean"
    },
    "gnb_stats_fetch_period": {
      "title": "gNB statistics fetch period (seconds)",
      "description": "Describes how often a call to Amarisoft remote API is made to get gNB statistics",
      "type": "number",
      "default": 60
    },
    "gnb_drb_stats_enabled": {
      "title": "Enable gNB drb statistics",
      "description": "Enable gNB drb statistics through 100Hz polling, needed for E-UTRAN IP Throughput KPI",
      "type": "boolean",
      "default": true
    },
    "max_rx_sample_db": {
      "title": "Maximum RX sample value (dB)",
      "description": "Maximum RX sample threshold above which RX saturated promise will fail",
      "type": "number",
      "default": 0
    },
    "min_rxtx_delay": {
      "title": "Minimum available time for radio front end processing (ms)",
      "description": "Baseband latency promise will fail if minimum TX/RX diff reaches threshold (lower than this value)",
      "type": "number",
      "default": 0
    },
    "xlog_fluentbit_forward_host": {
      "title": "Address to Forward Xlog by Fluenbit",
      "description": "Address of Remote Fluentd or Fluentbit Server to Forward Xlog",
      "type": "string"
    },
    "xlog_fluentbit_forward_port": {
      "title": "Port to Forward Xlog by Fluentbit",
      "description": "Optional Port of Remote Fluentd or Fluentbit Server to Forward Xlog",
      "type": "string"
    },
    "xlog_fluentbit_forward_shared_key": {
      "title": "Shared Key to Forward Xlog by Fluentbit",
      "description": "Secret Key Shared with Remote Fluentd or Fluentbit Server for Authentication when Forwarding Xlog",
      "type": "string"
    }
  }
}