summaryrefslogtreecommitdiff
path: root/ospfd/ospf_api.c
diff options
context:
space:
mode:
authorTrey Aspelund <taspelund@nvidia.com>2022-10-26 20:53:09 +0000
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2022-10-27 06:28:12 +0000
commit00f0d34c60a8a5af48a72544aa4ee0461eb4dd16 (patch)
treef99b2c5729437f49b6b349593f7be18f82271789 /ospfd/ospf_api.c
parent2ab7bfffde9657d658afbd31f36161b9b453d84a (diff)
bgpd: Check for IP-format Site-of-Origin
When deciding whether to apply "neighbor soo" filtering towards a peer, we were only looking for SoO ecoms that use either AS or AS4 encoding. This makes sure we also check for IPv4 encoding, since we allow a user to configure that encoding style against the peer. Config: ``` router bgp 1 address-family ipv4 unicast network 100.64.0.2/32 route-map soo-foo neighbor 192.168.122.12 soo 3.3.3.3:20 exit-address-family ! route-map soo-foo permit 10 set extcommunity soo 3.3.3.3:20 exit ``` Before: ``` ub20# show ip bgp neighbors 192.168.122.12 advertised-routes BGP table version is 5, local router ID is 100.64.0.222, vrf id 0 Default local pref 100, local AS 1 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *> 2.2.2.2/32 0.0.0.0 0 100 32768 i *> 100.64.0.2/32 0.0.0.0 0 100 32768 i Total number of prefixes 2 ``` After: ``` ub20# show ip bgp neighbors 192.168.122.12 advertised-routes BGP table version is 5, local router ID is 100.64.0.222, vrf id 0 Default local pref 100, local AS 1 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *> 2.2.2.2/32 0.0.0.0 0 100 32768 i Total number of prefixes 1 ``` Signed-off-by: Trey Aspelund <taspelund@nvidia.com> (cherry picked from commit 8c4d4624d2619ac23f082c354064b48b1c7e2842)
Diffstat (limited to 'ospfd/ospf_api.c')
0 files changed, 0 insertions, 0 deletions