bgpd: Do not force nh_afi to be AFI_IP for 'ipv4 labeled-unicast'

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
This commit is contained in:
Daniel Walton 2017-04-25 21:53:28 +00:00 committed by Donald Sharp
parent c05f73e0f4
commit 1d4b7d0e1a

View File

@ -2793,9 +2793,6 @@ bgp_packet_mpattr_start (struct stream *s, afi_t afi, safi_t safi, afi_t nh_afi,
if (nh_afi == AFI_MAX)
nh_afi = BGP_NEXTHOP_AFI_FROM_NHLEN(attr->extra->mp_nexthop_len);
if (safi == SAFI_LABELED_UNICAST)
nh_afi = AFI_IP;
/* Nexthop */
switch (nh_afi)
{