]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_evpn.c
bgpd: fix debug to have proper nhop display
authorChirag Shah <chirag@cumulusnetworks.com>
Sat, 25 May 2019 00:50:46 +0000 (17:50 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Tue, 28 May 2019 21:05:36 +0000 (14:05 -0700)
commit1ee069db0f17eeca23b88da5850bbb5cd1244b4f
tree6313ec0cad29a5708275c979fb97a41b90cdc96a
parentdcdc27095a2e2d26a62ffed85c9c6231ee954bed
bgpd: fix debug to have proper nhop display

Display nexthop based on route type.

Ticket:CM-25129
Testing Done:

evpn route:
*  [2]:[0]:[0]:[48]:[aa:aa:aa:aa:01:1a]:[32]:[45.0.2.111]
    36.0.0.25              0 64000 5560 i

old:
BGP: Tx route add VRF 46 45.0.2.111/32 metric 0 tag 0 flags 0x1409 nhnum 1
BGP:   nhop [1]: 2400:1d:: if 50 VRF 46

New:
BGP: import evpn prefix [2]:[aa:aa:aa:aa:01:1a]:[45.0.2.111]/224 as
ip prefix 45.0.2.111/32 in vrf vrf1

BGP: bgp_zebra_announce: p=45.0.2.111/32, bgp_is_valid_label: 2
BGP: Tx route add VRF 46 45.0.2.111/32 metric 0 tag 0 flags 0x1409 nhnum 1
BGP:   nhop [1]: 36.0.0.25 if 50 VRF 46

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
bgpd/bgp_evpn.c
bgpd/bgp_zebra.c