]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Bug fix in "show bgp l2vpn evpn ... advertised-routes' 5324/head
authorLakshman Krishnamoorthy <lkrishnamoor@vmware.com>
Tue, 12 Nov 2019 22:02:05 +0000 (14:02 -0800)
committerLakshman Krishnamoorthy <lkrishnamoor@vmware.com>
Tue, 12 Nov 2019 22:02:05 +0000 (14:02 -0800)
commit10d5be75aa99fef20acca97c4441e18982f8dad9
tree0d3a273766a066ac54d6e516d2c64764cf5f652b
parenta6ac9df8eaed9a27c5a7711d354e2ba39d8bcb02
bgpd: Bug fix in "show bgp l2vpn evpn ... advertised-routes'

The bug:
As part of displaying advertised routes to a peer, in the outer loop, we
iterate through all prefixes in the evpn table. In the inner loop,
we iterate through adj_out of each prefix.

If a prefix which is present in the evpn table is not advertised to a peer,
its corresponding attr == NULL. Checking for this condition is the fix.

Signed-off-by: Lakshman Krishnamoorthy <lkrishnamoor@vmware.com>
bgpd/bgp_vpn.c