Skip to content
Snippets Groups Projects
configmap.yaml 3.67 KiB
Newer Older
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ .Chart.Name }}-configmap
data:
  cucp.conf: |
      Active_gNBs = ( "{{ .Values.config.cucpName}}");
      # Asn1_verbosity, choice in: none, info, annoying
      Asn1_verbosity = "none";
      Num_Threads_PUSCH = 8;
      sa = 1;

      gNBs =
      (
       {
          ////////// Identification parameters:
turletti's avatar
turletti committed
          gNB_ID = @GNB_ID@;

      #     cell_type =  "CELL_MACRO_GNB";

          gNB_name  = "{{ .Values.config.cucpName}}";

          // Tracking area code, 0x0000 and 0xfffe are reserved values
          tracking_area_code  = {{ .Values.config.tac}};
          {{- if .Values.config.sd1 }}
            {{- if .Values.config.sd2 }}
              plmn_list = ({ mcc = {{ .Values.config.mcc}}; mnc = {{ .Values.config.mnc}}; mnc_length = 2; snssaiList = ({ sst = {{ .Values.config.sst1}}; sd = {{ .Values.config.sd1} }, { sst = {{ .Values.config.sst2}}; sd = {{ .Values.config.sd2}} }) });
            {{- else}}
              plmn_list = ({ mcc = {{ .Values.config.mcc}}; mnc = {{ .Values.config.mnc}}; mnc_length = 2; snssaiList = ({ sst = {{ .Values.config.sst1}}; sd = {{ .Values.config.sd1}} }) });
            {{- end}}
turletti's avatar
turletti committed
          {{- else}}
            plmn_list = ({ mcc = {{ .Values.config.mcc}}; mnc = {{ .Values.config.mnc}}; mnc_length = 2; snssaiList = ({ sst = {{ .Values.config.sst1}} }) });
          {{- end}}

          nr_cellid = 12345678L;

          tr_s_preference = "f1";

          local_s_address = "@F1_IP_ADDRESS@";
          remote_s_address = "127.0.0.1";
          local_s_portc   = 501;
          local_s_portd   = {{ .Values.config.f1cuPort}};
          remote_s_portc  = 500;
          remote_s_portd  = {{ .Values.config.f1duPort}};

          # ------- SCTP definitions
          SCTP :
          {
              # Number of streams to use in input/output
              SCTP_INSTREAMS  = 2;
              SCTP_OUTSTREAMS = 2;
          };


          ////////// AMF parameters:
turletti's avatar
turletti committed
          amf_ip_address = ({ ipv4 = "@AMF_IP_ADDRESS@"; });

          E1_INTERFACE =
          (
            {
              type = "cp";
              ipv4_cucp = "@E1_IP_ADDRESS@";
              port_cucp = 38462;
              ipv4_cuup = "0.0.0.0";
              port_cuup = 38462;
            }
          )

          NETWORK_INTERFACES :
          {
turletti's avatar
turletti committed
            GNB_IPV4_ADDRESS_FOR_NG_AMF              = "@GNB_N2_IP_ADDRESS@";
          };
        }
      );

      security = {
        # preferred ciphering algorithms
        # the first one of the list that an UE supports in chosen
        # valid values: nea0, nea1, nea2, nea3
        ciphering_algorithms = ( "nea0" );

        # preferred integrity algorithms
        # the first one of the list that an UE supports in chosen
        # valid values: nia0, nia1, nia2, nia3
        integrity_algorithms = ( "nia2", "nia0" );

        # setting 'drb_ciphering' to "no" disables ciphering for DRBs, no matter
        # what 'ciphering_algorithms' configures; same thing for 'drb_integrity'
        drb_ciphering = "yes";
        drb_integrity = "no";
      };
           log_config :
           {
             global_log_level                      ="info";
             hw_log_level                          ="info";
             phy_log_level                         ="info";
             mac_log_level                         ="info";
             rlc_log_level                         ="debug";
             pdcp_log_level                        ="info";
             rrc_log_level                         ="info";
turletti's avatar
turletti committed
             f1ap_log_level                        ="info";
             ngap_log_level                        ="debug";
             sctp_log_level                        ="info";