apiVersion: v1
kind: ConfigMap
metadata:
  name: ueransim-configmap
data: 
  open5gs-gnb.yaml: |
    mcc: '460'          # Mobile Country Code value
    mnc: '99'           # Mobile Network Code value (2 or 3 digits)

    nci: '0x000000010'  # NR Cell Identity (36-bit)
    idLength: 32        # NR gNB ID length in bits [22...32]
    tac: 1              # Tracking Area Code

    linkIp: 192.168.2.18   # gNB's local IP address for Radio Link Simulation (Usually same with local IP)
    ngapIp: 192.168.2.18    # gNB's local IP address for N2 Interface (Usually same with local IP)
    gtpIp: 192.168.2.18     # gNB's local IP address for N3 Interface (Usually same with local IP)

    # List of AMF address information
    amfConfigs:
      - address: 192.168.2.7
        port: 38412

    # List of supported S-NSSAIs by this gNB
    slices:
      - sst: 1
        sd: 1

    # Indicates whether or not SCTP stream number errors should be ignored.
    ignoreStreamIds: true

  open5gs-ue.yaml: |
    # IMSI number of the UE. IMSI = [MCC|MNC|MSISDN] (In total 15 or 16 digits)
    supi: 'imsi-460990000000003'
    # Mobile Country Code value
    mcc: '460'
    # Mobile Network Code value (2 or 3 digits)
    mnc: '99'

    # Permanent subscription key
    key: '465B5CE8B199B49FAA5F0A2EE238A6BC'
    # Operator code (OP or OPC) of the UE
    op: 'E8ED289DEBA952E4283B54E88E6183CA'
    # This value specifies the OP type and it can be either 'OP' or 'OPC'
    opType: 'OP'
    # Authentication Management Field (AMF) value
    amf: '8000'
    # IMEI number of the device. It is used if no SUPI is provided
    imei: '356938035643803'
    # IMEISV number of the device. It is used if no SUPI and IMEI is provided
    imeiSv: '4370816125816151'

    # List of gNB IP addresses for Radio Link Simulation
    gnbSearchList:
      - 192.168.2.18

    # Initial PDU sessions to be established
    sessions:
      - type: 'IPv4'
        apn: 'internet'
        slice:
          sst: 1
          sd: 1

    # List of requested S-NSSAIs by this UE
    slices:
      - sst: 1
        sd: 1

    # Supported encryption and integrity algorithms by this UE
    integrity:
      IA1: true
      IA2: true
      IA3: true
    ciphering:
      EA1: true
      EA2: true
      EA3: true
