bgp_attr_extra_free (&attr);
return;
}
- nexthop = un_addr; /* UN used as MPLS NLRI nexthop */
}
if (local_pref)
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:
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)
{
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);
}