]> git.proxmox.com Git - mirror_frr.git/commit
lib: copy_nexthops() only copies the first nexthop
authorDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 20 Jul 2017 17:11:43 +0000 (17:11 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 20 Jul 2017 17:11:43 +0000 (17:11 +0000)
commit874402831268edb872774f18b2d5701d604f3530
tree490fe032d37ea7d3b206bcbd16703b59a16862b9
parent8ed86a5d2062084ecc5c1d0035f286ff6aad9bd7
lib: copy_nexthops() only copies the first nexthop

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Before the fix NHT had each path resolving via swp1

cel-redxp-10# show ip route 20.0.11.253
Routing entry for 20.0.11.0/24
  Known via "bgp", distance 20, metric 0, best
  Last update 00:00:20 ago
  * 169.254.0.1, via swp1
  * 169.254.0.17, via swp2

cel-redxp-10#

cel-redxp-10# show ip nht
[snip]
20.0.11.253
 resolved via bgp
 via 169.254.0.1, swp1
 via 169.254.0.1, swp1
 Client list: pim(fd 19)

After the fix

cel-redxp-10# show ip nht
[snip]
20.0.11.253
 resolved via bgp
 via 169.254.0.1, swp1
 via 169.254.0.17, swp2
 Client list: pim(fd 19)
lib/nexthop.c