sonic-utilities
sonic-utilities copied to clipboard
Output weights for each path in 'show ip route'
What I did
I added weights in the output for "show ip route"
How I did it
I modified show/bgp_common.py to output "weight"
How to verify it
I ran UT and tested on testbed
Previous command output (if the output of a command-line utility has changed)
Routing entry for 192.168.0.1/32 Known via "bgp", distance 20, metric 0, best Last update 1d11h20m ago
- 10.0.0.1, via PortChannel0002
- 10.0.0.5, via PortChannel0005
New command output (if the output of a command-line utility has changed)
Routing entry for 192.168.0.1/32 Known via "bgp", distance 20, metric 0, best Last update 1d11h20m ago
- 10.0.0.1, via PortChannel0002, weight 1
- 10.0.0.5, via PortChannel0005, weight 1