Lang:
template bgp mpls_internal_core_peers {
  local as ARENDTSEN_ASN;
  local MPLS_LOOPBACKv6;

  ipv4 mpls {
    table t_mpls_v4;
    import all;
    export all;
  };

  ipv6 mpls {
    table t_mpls_v6;
    import all;
    export all;
    extended next hop;
  };

  vpn4 mpls {
    table t_vpn_v4;
    import all;
    export all;
  };

  vpn6 mpls {
    table t_vpn_v6;
    import all;
    export all;
    extended next hop;
  };

  mpls {
    domain mdom;
    table t_mpls;
    label policy aggregate;
    import all;
    export all;
  };
}

template bgp mpls_internal_rr_client_peers {
  router id MPLS_LOOPBACKv4;
  local as ARENDTSEN_ASN;
  local MPLS_LOOPBACKv6;
  rr client;

  ipv4 mpls {
    table t_mpls_v4;
    import all;
    export all;
  };

  ipv6 mpls {
    table t_mpls_v6;
    import all;
    export all;
    extended next hop;
  };

  vpn4 mpls {
    table t_vpn_v4;
    import all;
    export all;
  };

  vpn6 mpls {
    table t_vpn_v6;
    import all;
    export all;
    extended next hop;
  };

  mpls {
    domain mdom;
    table t_mpls;
    label policy aggregate;
    import all;
    export all;
  };
}