Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bgpd: Show applied route-map attributes for `neighbor X advertised-ro…
…utes detail` If we have a route-map that sets some attributes e.g. community or large-community, and the route-map is applied for outgoing direction, everything is fine, but we missed the point that `advertised-routes detail` was not using the applied attributes to display and instead it uses what is received from the peer (original). Let's fix this, and we can now see: ``` route-map r3 permit 10 match ip address prefix-list p1 set community 65001:65002 set extcommunity bandwidth 100 set large-community 65001:65002:65003 exit ! ... address-family ipv4 unicast neighbor 192.168.2.3 route-map r3 out exit-address-family ... ``` The output: ``` r2# show bgp ipv4 unicast neighbor 192.168.2.3 advertised-routes detail BGP table version is 1, local router ID is 192.168.2.2, vrf id 0 Default local pref 100, local AS 65002 BGP routing table entry for 10.10.10.1/32, version 1 Paths: (1 available, no best path) Advertised to non peer-group peers: 192.168.1.1 192.168.2.3 65001 0.0.0.0 (inaccessible, import-check enabled) from 192.168.2.3 (192.168.2.3) Origin IGP, invalid, external Community: 65001:65002 <<<<<<<<<<<<<<<<< Extended Community: LB:65002:12500000 (100.000 Mbps) <<<<<<<<<<<<<<<<< Large Community: 65001:65002:65003 <<<<<<<<<<<<<<<<< Last update: Wed Dec 18 04:54:23 2024 ``` Without this fix we didn't see Community, Large Community, etc. Signed-off-by: Donatas Abraitis <[email protected]>
- Loading branch information