mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 07:21:59 +00:00
bgpd rfapi: use VN as nexthop for MPLS tunnels too
Also minor show format cleanup Signed-off-by: Lou Berger <lberger@labn.net>
This commit is contained in:
parent
4c6f219aa2
commit
764581d286
@ -768,7 +768,6 @@ add_vnc_route (
|
||||
bgp_attr_extra_free (&attr);
|
||||
return;
|
||||
}
|
||||
nexthop = un_addr; /* UN used as MPLS NLRI nexthop */
|
||||
}
|
||||
|
||||
if (local_pref)
|
||||
|
@ -131,8 +131,7 @@ rfapi_tunneltype_option_to_tlv (
|
||||
break;
|
||||
|
||||
case BGP_ENCAP_TYPE_MPLS:
|
||||
_RTTO_MAYBE_ADD_ENDPOINT_ADDRESS (mpls);
|
||||
bgp_encap_type_mpls_to_tlv (&tto->bgpinfo.mpls, attr);
|
||||
/* nothing to do for MPLS */
|
||||
break;
|
||||
|
||||
case BGP_ENCAP_TYPE_MPLS_IN_GRE:
|
||||
|
@ -423,10 +423,7 @@ rfapiGetVncTunnelUnAddr (struct attr *attr, struct prefix *p)
|
||||
rfapiGetTunnelType (attr, &tun_type);
|
||||
if (p && tun_type == BGP_ENCAP_TYPE_MPLS)
|
||||
{
|
||||
/* MPLS carries UN address in next hop */
|
||||
rfapiNexthop2Prefix (attr, p);
|
||||
if (p->family != 0)
|
||||
return 0;
|
||||
return ENOENT; /* no UN for MPLS */
|
||||
}
|
||||
if (attr && attr->extra)
|
||||
{
|
||||
|
@ -490,14 +490,7 @@ rfapi_vty_out_vncinfo (
|
||||
if (bi->extra != NULL)
|
||||
vty_out (vty, " label=%u", decode_label (bi->extra->tag));
|
||||
|
||||
if (rfapiGetVncLifetime (bi->attr, &lifetime))
|
||||
{
|
||||
if (safi == SAFI_MPLS_VPN || safi == SAFI_ENCAP)
|
||||
{
|
||||
vty_out (vty, " life=none");
|
||||
}
|
||||
}
|
||||
else
|
||||
if (!rfapiGetVncLifetime (bi->attr, &lifetime))
|
||||
{
|
||||
vty_out (vty, " life=%d", lifetime);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user