]> git.puffer.fish Git - mirror/frr.git/commit
bgpd : add prefix-length in show ip bgp neighbor advertised routes key 4331/head
authorSarita Patra <saritap@vmware.com>
Mon, 13 May 2019 17:27:54 +0000 (10:27 -0700)
committerSarita Patra <saritap@vmware.com>
Tue, 11 Jun 2019 14:56:15 +0000 (07:56 -0700)
commit1608ff7715ba135c2ccac34b80871512c7f658c4
tree09efbead5d60487c7ab14fd3654d9adf066057b6
parent6aba4eeaecdb0307fda736d2bec968e5da0d5dfb
bgpd : add prefix-length in show ip bgp neighbor advertised routes key

Issue:
ip route 15.1.1.0/24 10.112.158.15
ip route 15.1.1.0/32 10.112.158.15
Brought up ebgp session between two FRR routers and
redistributed static routes via BGP and verfied the advertising
routes in the peer.

Verify the command "show ip  bgp neighbors <neighbor address>
advertised-routes json". It only shows 15.1.1.0/32 route details.

Root casue:
For both the routes "15.1.1.0/24" and "15.1.1.0/32" the advertised
routes key is the prefix i.e. "15.1.1.0".

Fix:
Modify the key to prefix/prefix-length.

Signed-off-by: Sarita Patra <saritap@vmware.com>
bgpd/bgp_route.c