Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bgpd: Display default local preference and local AS for BGP show comm…
…ands 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 <[email protected]>
- Loading branch information