]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Display default local preference and local AS for BGP show commands
authorAmeya Dharkar <adharkar@vmware.com>
Fri, 2 Nov 2018 21:40:44 +0000 (14:40 -0700)
committerAmeya Dharkar <adharkar@vmware.com>
Wed, 5 Dec 2018 19:38:13 +0000 (11:38 -0800)
commit01eced229d86389c75d222c44dafc65e9f73a68a
treebd11c955a7e110ef3b862d8fe78a905057c56485
parent60e2b4f56695fba680493cfbb61fd8d4d5b6fdf7
bgpd: Display default local preference and local AS for BGP show commands

1. "show bgp ipv4/ipv6 [json]"
2. "show bgp ipv4/ipv6 neighbor <peer> routes [json]"
3. "show bgp ipv4/ipv6 neighbors <peer> advertised-routes [json]"

In the above show commands, when a BGP path is displayed, we do not display the
local preference if it is EBGP route. Route calculation assumes the default
local preference. But, we can change the default local preference using
configuration in FRR. In this case, user should know the default local
preference value that is being used in the route calculation. Thus, adding a
new field 'default local preferece' in the show commands where a BGP path is
displayed.

When a BGP path is displayed in the above show commands, as-path does not
include the local AS. So, user has to execute another show command to display
the local-AS. To avoid this, adding a new field local-AS to above show commands.

Signed-off-by: Ameya Dharkar <adharkar@vmware.com>
bgpd/bgp_route.c