apiVersion: v1
kind: ConfigMap
metadata:
  name: f5gc-smf-config
data:
  smfcfg.conf: |
    info:
      version: 1.0.2
      description: SMF initial local configuration
    
    configuration:
      smfName: SMF
      sbi:
        scheme: http
        registerIPv4: f5gc-smf
        bindingIPv4: 0.0.0.0 
        port: 29502
        tls:
          key: free5gc/support/TLS/smf.key
          pem: free5gc/support/TLS/smf.pem
      serviceNameList:
        - nsmf-pdusession
        - nsmf-event-exposure
        - nsmf-oam
      snssaiInfos:
        - sNssai:
            sst: 1
            sd: 010203
          dnnInfos:
            - dnn: internet
              dns:
                ipv4: 8.8.8.8
        # - sNssai:
        #     sst: 2
        #     sd: 112233
        #   dnnInfos:
        #     - dnn: internet
        #       dns:
        #         ipv4: 8.8.8.8
        - sNssai:
            sst: 3
            sd: 112233
          dnnInfos:
            - dnn: internet
              dns:
                ipv4: 8.8.8.8
      pfcp:
        addr: 172.20.30.0 #N4 smf
      userplane_information:
        up_nodes:
          gNB1:
            type: AN
          UPF1:
            type: UPF
            node_id: 172.20.20.0 #N4
            sNssaiUpfInfos: # S-NSSAI information list for this UPF
              - sNssai: # S-NSSAI (Single Network Slice Selection Assistance Information)
                  sst: 1 # Slice/Service Type (uinteger, range: 0~255)
                  sd: 010203 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
                dnnUpfInfoList: # DNN information list for this S-NSSAI
                  - dnn: internet
                    pools:
                      - cidr: 60.60.0.0/17 # 32 766 UEs
              - sNssai: # S-NSSAI (Single Network Slice Selection Assistance Information)
                  sst: 2 # Slice/Service Type (uinteger, range: 0~255)
                  sd: 112233 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
                dnnUpfInfoList: # DNN information list for this S-NSSAI
                  - dnn: internet
                    pools:
                      - cidr: 60.60.128.0/17 # 32 766 UEs
            interfaces: # Interface list for this UPF
              - interfaceType: N3 # the type of the interface (N3 or N9)
                endpoints: # the IP address of this N3/N9 interface on this UPF
                  - 172.20.20.0 # UPF ip of N3 interface
                networkInstance: internet # Data Network Name (DNN)
          # UPF2:
          #   type: UPF
          #   node_id: 172.16.30.31 #N4
          #   sNssaiUpfInfos: # S-NSSAI information list for this UPF
          #     - sNssai: # S-NSSAI (Single Network Slice Selection Assistance Information)
          #         sst: 3 # Slice/Service Type (uinteger, range: 0~255)
          #         sd: 112233 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
          #       dnnUpfInfoList: # DNN information list for this S-NSSAI
          #         - dnn: internet
          #           pools:
          #             - cidr: 60.61.0.0/24
          #   interfaces: # Interface list for this UPF
          #     - interfaceType: N3 # the type of the interface (N3 or N9)
          #       endpoints: # the IP address of this N3/N9 interface on this UPF
          #         - 192.168.10.21 # UPF ip of N3 interface
          #       networkInstance: internet # Data Network Name (DNN)
        links:
          - A: gNB1
            B: UPF1
          # - A: gNB1
          #   B: UPF2
      nrfUri: http://f5gc-nrf:29510
      locality: area1 # Name of the location where a set of AMF, SMF and UPFs are located
      ulcl: false
    
    logger:
      SMF:
        debugLevel: info
        ReportCaller: false
      NAS:
        debugLevel: info
        ReportCaller: false
      NGAP:
        debugLevel: info
        ReportCaller: false
      Aper:
        debugLevel: info
        ReportCaller: false
      PathUtil:
        debugLevel: info
        ReportCaller: false
      OpenApi:
        debugLevel: info
        ReportCaller: false
      PFCP:
        debugLevel: info
        ReportCaller: false

  uerouting.yaml: |
    info:
      version: 1.0.1
      description: Routing information for UE
    
    ueRoutingInfo:
