Skip to content

Commit

Permalink
bgpd: Do not force nh_afi to be AFI_IP for 'ipv4 labeled-unicast'
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
  • Loading branch information
Daniel Walton authored and donaldsharp committed Apr 26, 2017
1 parent c05f73e commit 1d4b7d0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions bgpd/bgp_attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 1d4b7d0

Please sign in to comment.