...
We are advertising BGP to OMP with BGP community in route, when BGP config is remove/re-apply the OMP route is sent without BGP community i.e. the route-map for set community is no longer being applied.
BGP to OMP redistribution with BGP communities
Remove/re-add the BGP to OMP redistribution. c8000v_1(config)# sdwan omp c8000v_1(config-omp)# address-family ipv4 vrf 300 c8000v_1(config-vrf-300)# no advertise bgp route-map RM_REDIS_BGP_TO_OMP c8000v_1(config-vrf-300)# commit Commit complete. c8000v_1(config-vrf-300)# advertise bgp route-map RM_REDIS_BGP_TO_OMP c8000v_1(config-vrf-300)# commit
1.We redistribute BGP to OMP routes with BGP Community flags : omp no shutdown graceful-restart no as-dot-notation timers graceful-restart-timer 43200 exit address-family ipv4 vrf 300 advertise bgp route-map RM_REDIS_BGP_TO_OMP advertise network 30.0.0.0/24 c8000v_1#show ip bgp vpnv4 vrf 300 10.20.12.0/24 BGP routing table entry for 1:300:10.20.12.0/24, version 4 Paths: (1 available, best #1, table 300) Not advertised to any peer Refresh Epoch 1 5000 192.168.2.126 (via vrf 300) from 192.168.2.126 (192.168.1.139) Origin IGP, metric 0, localpref 100, valid, external, best Community: 65000:100 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Extended Community: RT:1:300 rx pathid: 0, tx pathid: 0x0 Updated on Oct 19 2022 00:12:30 UTC c8000v_1#sh sdwan omp routes 10.20.12.0/24 detail --------------------------------------------------- omp route entries for vpn 300 route 10.20.12.0/24 --------------------------------------------------- RECEIVED FROM: peer 0.0.0.0 path-id 68 label 1003 status C,Red,R loss-reason not set lost-to-peer not set lost-to-path-id not set Attributes: originator 100.0.0.1 type installed tloc 100.0.0.1, biz-internet, ipsec ultimate-tloc not set domain-id not set overlay-id 1 site-id 100 preference not set tag not set origin-proto eBGP origin-metric 0 as-path not set community 65000:100 <<<<<<<<<<<<<<<<<<<<<<<<<<< unknown-attr-len not set ADVERTISED TO: peer 77.77.77.77 Attributes: originator 100.0.0.1 label 1003 path-id 68 tloc 100.0.0.1, biz-internet, ipsec ultimate-tloc not set domain-id not set site-id 100 overlay-id 1 preference not set tag not set origin-proto eBGP origin-metric 0 as-path not set community 65000:100 <<<<<<<<<<<<<<<<<<<<<<<<<<< unknown-attr-len not set 2.Remove and re-add complete BGP configuration on cEdge that will cause the route to go out : c8000v_1(config)# no router bgp 65000 c8000v_1(config)# commit Commit complete. c8000v_1(config)# end c8000v_1#sh sdwan omp routes 10.20.12.0/24 detail % No entries found. c8000v_1#config-transaction johan connected from 127.0.0.1 using console on c8000v_1 c8000v_1(config)# router bgp 65000 c8000v_1(config-router)# bgp log-neighbor-changes c8000v_1(config-router)# neighbor pg-11 peer-group c8000v_1(config-router)# neighbor pg-12 peer-group c8000v_1(config-router)# neighbor 10.10.10.51 remote-as 100 c8000v_1(config-router)# neighbor 10.10.10.51 peer-group pg-11 c8000v_1(config-router)# neighbor 169.254.24.101 remote-as 64512 c8000v_1(config-router)# neighbor 169.254.96.121 remote-as 64512 c8000v_1(config-router)# neighbor 169.254.101.29 remote-as 64512 c8000v_1(config-router)# neighbor 169.254.111.33 remote-as 64512 c8000v_1(config-router)# neighbor 192.168.2.126 remote-as 5000 c8000v_1(config-router)# ! c8000v_1(config-router)# address-family ipv4 vrf 300 c8000v_1(config-router-af)# neighbor 192.168.2.126 remote-as 5000 c8000v_1(config-router-af)# neighbor 192.168.2.126 activate c8000v_1(config-router-af)# exit-address-family c8000v_1(config-router)# commit Commit complete. 3.Now the Community is not set in OMP route, but it is in BGP route : c8000v_1#show ip bgp vpnv4 vrf 300 10.20.12.0/24 BGP routing table entry for 1:300:10.20.12.0/24, version 2 Paths: (1 available, best #1, table 300) Not advertised to any peer Refresh Epoch 1 5000 192.168.2.126 (via vrf 300) from 192.168.2.126 (192.168.1.139) Origin IGP, metric 0, localpref 100, valid, external, best Community: 65000:100 <<<<<<<<<<<<<<<<<<<<<<<<<<<< Extended Community: RT:1:300 rx pathid: 0, tx pathid: 0x0 Updated on Oct 19 2022 01:40:24 UTC c8000v_1#sh sdwan omp routes 10.20.12.0/24 detail --------------------------------------------------- omp route entries for vpn 300 route 10.20.12.0/24 --------------------------------------------------- RECEIVED FROM: peer 0.0.0.0 path-id 68 label 1003 status C,Red,R loss-reason not set lost-to-peer not set lost-to-path-id not set Attributes: originator 100.0.0.1 type installed tloc 100.0.0.1, biz-internet, ipsec ultimate-tloc not set domain-id not set overlay-id 1 site-id 100 preference not set tag not set origin-proto eBGP origin-metric 0 as-path not set community not set <<<<<<<<<<<<<<<<<<<<<<< unknown-attr-len not set ADVERTISED TO: peer 77.77.77.77 Attributes: originator 100.0.0.1 label 1003 path-id 68 tloc 100.0.0.1, biz-internet, ipsec ultimate-tloc not set domain-id not set site-id 100 overlay-id 1 preference not set tag not set origin-proto eBGP origin-metric 0 as-path not set community not set <<<<<<<<<<<<<<<<<<<<<<<<< Community is not set unknown-attr-len not set