{
  log_options: "all.level=error,all.max_size=0,nas.level=debug,nas.max_size=1,s1ap.level=debug,s1ap.max_size=1,ngap.level=debug,ngap.max_size=1,file.rotate=1G,file.path=/dev/null",
  log_filename: "{{ directory['log'] }}/mme.log",
  
{% if slapparameter_dict.get('external_enb_gnb', '') %}
{%   if slapparameter_dict.get('use_ipv4', False) %}
  gtp_addr: "{{ gtp_addr_v4 }}",
{%   else %}
  gtp_addr: "{{ gtp_addr_v6 }}",
{%   endif %}
{% else %}
  gtp_addr: "127.0.1.100",
{% endif %}

  plmn: "{{ slapparameter_dict.get('epc_plmn', "00101") }}",
  mme_group_id: 32769,
  mme_code: 1,

  ims_vops_eps: true, 
  ims_vops_5gs_3gpp: true, 
  ims_vops_5gs_n3gpp: true, 
  emergency_number_list: [
          
    { category: 0x1f, digits: "911" },
    { category: 0x1f, digits: "112" },
  ],

  rx: {
    qci: {audio: 1, video: 2},
  },

  
  network_name: "{{ slap_configuration['configuration.network_name'] }}",
  network_short_name: "{{ slap_configuration['configuration.network_name'] }}",
  
  cp_ciot_opt: true,
  
  nr_support: true,

  eps_5gs_interworking: "with_n26",
  
  fifteen_bearers: false,

  ims_list: [
    {
      ims_addr: "{{ slap_configuration['configuration.ims_addr'] }}",
      bind_addr: "{{  slap_configuration['configuration.ims_bind'] }}"
    }
  ],
  
  pdn_list: [
    {
      pdn_type: "ipv4",
      tun_ifname: "{{ slap_configuration.get('tun-name', '') }}",
      access_point_name: ["default", "internet", "ims", "sos"],
{% if slap_configuration.get('tun-name', '') %}
      first_ip_addr: "{{ netaddr.IPAddress(netaddr.IPNetwork(slap_configuration.get('tun-ipv4-network', '')).first) + 2 }}",
      last_ip_addr: "{{ netaddr.IPAddress(netaddr.IPNetwork(slap_configuration.get('tun-ipv4-network', '')).last) - 1 }}",
{% endif %}
      ip_addr_shift: 2, 
      dns_addr: "8.8.8.8", 
      p_cscf_addr: ["{{ slap_configuration.get('tun-ipv4-addr', '') }}"],

      erabs: [
        {
          qci: 9,
          priority_level: 15,
          pre_emption_capability: "shall_not_trigger_pre_emption",
          pre_emption_vulnerability: "not_pre_emptable",
        },
      ],
    },
  ],

  tun_setup_script: "{{ ifup_empty }}",
  ue_to_ue_forwarding: false,
  nas_cipher_algo_pref: [ ],
  nas_integ_algo_pref: [ 2, 1 ],
  include "{{ slap_configuration['ue_db_path'] }}",
  ue_db_filename: "{{ directory['var'] }}/lte_ue.db"
}
