################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1  (the "License"); you may not use this file
# except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
#      contact@openairinterface.org
################################################################################

AMF = 
{
  INSTANCE_ID = 10;            # 0 is the default
  PID_DIRECTORY = "/var/run";   # /var/run is the default
  
  AMF_NAME = "OAI-AMF";
  
  RELATIVE_CAPACITY = 30;
  # Display statistics about whole system (in seconds)
  STATISTICS_TIMER_INTERVAL = 20;  # YOUR CONFIG HERE
  
  CORE_CONFIGURATION:
  {
    EMERGENCY_SUPPORT = "false";
  };
  
  GUAMI: 
  {
    MCC = "110"; MNC = "11"; RegionID = "128"; AMFSetID = "4"; AMFPointer = "1" # YOUR GUAMI CONFIG HERE
  }
  
  SERVED_GUAMI_LIST = (
    {MCC = "110"; MNC = "11"; RegionID = "10"; AMFSetID = "1"; AMFPointer = "0"}, #48bits <MCC><MNC><RegionID><AMFSetID><AMFPointer>
    {MCC = "110"; MNC = "11"; RegionID = "10"; AMFSetID = "1"; AMFPointer = "1"}  #48bits <MCC><MNC><RegionID><AMFSetID><AMFPointer>
  );
    
  PLMN_SUPPORT_LIST = (
  {
    MCC = "110"; MNC = "11"; TAC = 100;  # YOUR PLMN CONFIG HERE
    SLICE_SUPPORT_LIST = (
      {SST = "1"; SD = "none"},  # YOUR NSSAI CONFIG HERE
      {SST = "1"; SD = "12"}   # YOUR NSSAI CONFIG HERE
     )
  }
  );
    
  INTERFACES:
  {
    # AMF binded interface for N1/N2 interface (NGAP) 
    NGAP_AMF: 
    {
      INTERFACE_NAME = "ens32";  # YOUR NETWORK CONFIG HERE
      IPV4_ADDRESS   = "read";
      PORT           = 38412;                            # YOUR NETWORK CONFIG HERE
      PPID           = 60;                               # YOUR NETWORK CONFIG HERE
    };
    # AMF binded interface for Nausf interface
    NAUSF: 
    {
     INTERFACE_NAME = "ens32";  # YOUR NETWORK CONFIG HERE
      IPV4_ADDRESS   = "192.168.2.24/24";
      PORT           = 8383;                            # YOUR NETWORK CONFIG HERE
    };
    
    # AMF binded interface for N11 
    N11:
    {
      INTERFACE_NAME = "ens32";                          # YOUR NETWORK CONFIG HERE
      IPV4_ADDRESS   = "read";
      PORT           = 8282;                               # YOUR NETWORK CONFIG HERE

      SMF_INSTANCES_POOL = (
        {SMF_INSTANCE_ID = 1; IPV4_ADDRESS = "192.168.2.24"; PORT = "8889"; VERSION = "v2"; SELECTED = "true"},   # YOUR SMF CONFIG HERE
        {SMF_INSTANCE_ID = 2; IPV4_ADDRESS = "10.103.238.21"; PORT = "8181"; VERSION = "v1"; SELECTED = "false"} # YOUR SMF CONFIG HERE
      );
    };
  };
  

  AUTHENTICATION:
  {
    ## MySQL mandatory options
    MYSQL_server = "192.168.2.24"; # MySQL Server address
    MYSQL_user   = "root";   # Database server login
    MYSQL_pass   = "root";   # Database server password
    MYSQL_db     = "OAI_DB";     # Your database name
    
    ## OP
    OPERATOR_key = "1006020f0a478bf6b699f15c062e42b3"; # OP key matching your database
    RANDOM = "true";
  };
  
  NAS:
  {
	ORDERED_SUPPORTED_INTEGRITY_ALGORITHM_LIST = [ "NIA1" , "NIA1" , "NIA1" ];
	ORDERED_SUPPORTED_CIPHERING_ALGORITHM_LIST = [ "NEA0" , "NEA1" , "NEA2" ];
  };
  
};


MODULES =
{
  NGAP_MESSAGE = (
    {MSG_NAME = "NGSetupRequest"; ProcedureCode = 21; TypeOfMessage = "initialMessage"}
  );
};
