{
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Input Parameters",
  "properties": {
    "nr_bandwidth": {
      "$ref": "cell/common.json#/properties/bandwidth",
      "default": 40
    },
    "n_antenna_dl": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/n_antenna_dl"
    },
    "n_antenna_ul": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/n_antenna_ul"
    },
    "rf_mode": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/rf_mode"
    },
    "tdd_ul_dl_config": {
      "$ref": "cell/nr/input-schema.json#/properties/tdd_ul_dl_config"
    },
    "dl_nr_arfcn": {
      "$ref": "cell/nr/input-schema.json#/properties/dl_nr_arfcn"
    },
    "ssb_nr_arfcn": {
      "$ref": "cell/nr/input-schema.json#/properties/ssb_nr_arfcn"
    },
    "nr_band": {
      "$ref": "cell/nr/input-schema.json#/properties/nr_band"
    },
    "ssb_pos_bitmap": {
      "$ref": "cell/nr/input-schema.json#/properties/ssb_pos_bitmap",
      "default": "10000000"
    },
    "pci": {
      "$ref": "cell/common.json#/properties/pci",
      "default": 500
    },
    "cell_id": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/cell_id"
    },
    "tx_gain": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/tx_gain"
    },
    "rx_gain": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/rx_gain"
    },
    "gnb_id": {
      "$ref": "instance-enb-input-schema.json#/properties/gnb_id",
      "default": "0x12345"
    },
    "gnb_id_bits": {
      "$ref": "instance-enb-input-schema.json#/properties/gnb_id_bits",
      "default": 28
    },
    "gtp_addr": {
      "$ref": "instance-enb-input-schema.json#/properties/gtp_addr",
      "default": "127.0.1.1"
    },
    "mbmsgw_addr": {
      "$ref": "instance-enb-input-schema.json#/properties/mbmsgw_addr"
    },
    "amf_list": {
      "$ref": "instance-enb-input-schema.json#/properties/amf_list",
      "default": {
        "Local core-network": {
          "amf_addr": "127.0.1.100"
        }
      }
    },
    "plmn_list": {
      "$ref": "instance-enb-input-schema.json#/properties/plmn_list_5g",
      "description": "List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)",
      "default": {
        "Test PLMN": {
          "plmn": "00101",
          "tac": 100
        }
      }
    },
    "nssai": {
      "$ref": "instance-enb-input-schema.json#/properties/nssai"
    },
    "handover_a1_rsrp": {
      "title": "Handover A1 event RSRP threshold",
      "description": "Integer, range from -140 to -43. RSRP threshold value in dBm.",
      "type": "number",
      "default": -70
    },
    "handover_a1_hysteresis": {
      "title": "Handover A1 event hysteresis",
      "description": "Integer, range from 0 to 30. A1 hysteresis in 0.5dB steps used for the measurement report triggering condition.",
      "type": "number",
      "default": 0
    },
    "handover_a1_time_to_trigger": {
      "title": "Handover A1 event time to trigger",
      "description": "Time in ms during which the A1 event condition must be met before triggering the measurement report.",
      "type": "number",
      "enum": [
        0,
        40,
        64,
        80,
        100,
        128,
        160,
        256,
        320,
        480,
        512,
        640,
        1024,
        1280,
        2560,
        5120
      ],
      "default": 640
    },
    "handover_a2_rsrp": {
      "title": "Handover A2 event RSRP threshold",
      "description": "Integer, range from -140 to -43. RSRP threshold value in dBm.",
      "type": "number",
      "default": -80
    },
    "handover_a2_hysteresis": {
      "title": "Handover A2 event hysteresis",
      "description": "Integer, range from 0 to 30. A2 hysteresis in 0.5dB steps used for the measurement report triggering condition.",
      "type": "number",
      "default": 0
    },
    "handover_a2_time_to_trigger": {
      "title": "Handover A2 event time to trigger",
      "description": "Time in ms during which the A2 event condition must be met before triggering the measurement report.",
      "type": "number",
      "enum": [
        0,
        40,
        64,
        80,
        100,
        128,
        160,
        256,
        320,
        480,
        512,
        640,
        1024,
        1280,
        2560,
        5120
      ],
      "default": 640
    },
    "nr_nr_handover": {
      "title": "NR Handover",
      "type": "object",
      "default": {
        "event": {
          "a3_rsrp": 6
        },
        "hysteresis": 0,
        "time_to_trigger": 480
      },
      "properties": {
        "event": {
          "title": "NR Handover event",
          "type": "object",
          "oneOf": [
            {
              "title": "A3 event",
              "type": "object",
              "required": [
                "a3_rsrp"
              ],
              "properties": {
                "a3_rsrp": {
                  "title": "Handover A3 event RSRP offset",
                  "description": "Integer, range from -140 to -43. RSRP gain offset between eNBs and gNBs which will trigger handover",
                  "type": "number"
                }
              }
            },
            {
              "title": "A4 event",
              "type": "object",
              "required": [
                "a4_rsrp"
              ],
              "properties": {
                "a4_rsrp": {
                  "title": "Handover A4 event RSRP threshold",
                  "description": "Integer, range from -140 to -43. RSRP threshold value in dBm",
                  "type": "number"
                }
              }
            },
            {
              "title": "A5 event",
              "type": "object",
              "required": [
                "a5_threshold1_rsrp",
                "a5_threshold2_rsrp"
              ],
              "properties": {
                "a5_threshold1_rsrp": {
                  "title": "Handover A5 event RSRP threshold1",
                  "description": "Integer, range from -140 to -43. RSRP threshold1 value in dBm",
                  "type": "number"
                },
                "a5_threshold2_rsrp": {
                  "title": "Handover A5 event RSRP threshold2",
                  "description": "Integer, range from -140 to -43. RSRP threshold2 value in dBm",
                  "type": "number"
                }
              }
            }
          ]
        },
        "hysteresis": {
          "title": "NR Handover hysteresis",
          "description": "Integer, range from 0 to 30. A3/A4/A5 hysteresis in 0.5dB steps used for the measurement report triggering condition.",
          "type": "number"
        },
        "time_to_trigger": {
          "title": "NR Handover time to trigger",
          "description": "Time in ms during which the A3/A4/A5 event condition must be met before triggering the measurement report.",
          "type": "number",
          "enum": [
            0,
            40,
            64,
            80,
            100,
            128,
            160,
            256,
            320,
            480,
            512,
            640,
            1024,
            1280,
            2560,
            5120
          ]
        }
      }
    },
    "nr_eutra_handover": {
      "title": "EUTRA Handover",
      "type": "object",
      "default": {
        "event": {
          "b1_rsrp": -80
        },
        "hysteresis": 0,
        "time_to_trigger": 100
      },
      "properties": {
        "event": {
          "title": "EUTRA Handover event",
          "type": "object",
          "oneOf": [
            {
              "title": "B1 event",
              "type": "object",
              "required": [
                "b1_rsrp"
              ],
              "properties": {
                "b1_rsrp": {
                  "title": "Handover B1 event RSRP threshold",
                  "description": "Integer, range from -156 to -30. RSRP threshold value in dBm.",
                  "type": "number"
                }
              }
            },
            {
              "title": "B2 event",
              "type": "object",
              "required": [
                "b2_threshold1_rsrp",
                "b2_threshold2_rsrp"
              ],
              "properties": {
                "b2_threshold1_rsrp": {
                  "title": "Handover B2 event RSRP threshold1",
                  "description": "Integer, range from -140 to -43. RSRP threshold1 value in dBm",
                  "type": "number"
                },
                "b2_threshold2_rsrp": {
                  "title": "Handover B2 event RSRP threshold2",
                  "description": "Integer, range from -140 to -43. RSRP threshold2 value in dBm",
                  "type": "number"
                }
              }
            }
          ]
        },
        "hysteresis": {
          "title": "EUTRA Handover hysteresis",
          "description": "Integer, range from 0 to 30. EUTRA B1 or B2 hysteresis in 0.5dB steps.",
          "type": "number"
        },
        "time_to_trigger": {
          "title": "EUTRA Handover time to trigger",
          "description": "Time in ms during which the EUTRA B1 or B2 event condition must be met before triggering the measurement report.",
          "type": "number",
          "enum": [
            0,
            40,
            64,
            80,
            100,
            128,
            160,
            256,
            320,
            480,
            512,
            640,
            1024,
            1280,
            2560,
            5120
          ]
        }
      }
    },
    "handover_meas_gap_config": {
      "title": "Handover measurement gap configuration",
      "description": "Configuration of the measurement gap. Ignored if no neighbour cells are configured.",
      "type": "string",
      "enum": [
        "None",
        "Gap Pattern 0",
        "Gap Pattern 1"
      ],
      "default": "Gap Pattern 1"
    },
    "ncell_list": {
      "title": "Neighbour Cell Info",
      "description": "Neighbour Cell Info",
      "patternProperties": {
        ".*": {
          "$ref": "peer/cell/input-schema.json"
        }
      },
      "type": "object",
      "default": {}
    },
    "xn_peers": {
      "title": "XN Peers",
      "description": "XN Peers",
      "patternProperties": {
        ".*": {
          "properties": {
            "xn_addr": {
              "$ref": "peer/nr/input-schema.json#/properties/xn_addr"
            }
          },
          "type": "object"
        }
      },
      "type": "object",
      "default": {}
    },
    "inactivity_timer": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/inactivity_timer"
    },
    "log_phy_debug": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/log_phy_debug"
    },
    "gps_sync": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/gps_sync"
    },
    "disable_sdr": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/disable_sdr"
    },
    "use_ipv4": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/use_ipv4"
    },
    "enb_stats_fetch_period": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/enb_stats_fetch_period"
    },
    "enb_drb_stats_enabled": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/enb_drb_stats_enabled"
    },
    "max_rx_sample_db": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/max_rx_sample_db"
    },
    "min_rxtx_delay": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/min_rxtx_delay"
    },
    "xlog_forwarding_enabled": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/xlog_forwarding_enabled"
    },
    "wendelin_telecom_software_release_url": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/wendelin_telecom_software_release_url"
    },
    "xlog_fluentbit_forward_host": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/xlog_fluentbit_forward_host"
    },
    "xlog_fluentbit_forward_port": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/xlog_fluentbit_forward_port"
    },
    "xlog_fluentbit_forward_shared_key": {
      "$ref": "instance-ors-enb-input-schema.json#/properties/xlog_fluentbit_forward_shared_key"
    }
  }
}
