When using any route map, EVPN type 3 (multicast) routes are not advertised.
Apply the configuration to reproduce the problem:
interfaces {
bridge br100 {
mac 26:28:B0:96:C0:CA
member {
interface vxlan100 {
}
}
vrf internet
}
vxlan vxlan100 {
mtu 1500
parameters {
nolearning
}
port 4789
source-address 10.32.0.43
vni 100
}
}
policy {
route-map RS-OUT {
rule 10 {
action permit
}
}
}
}
protocols {
bgp {
address-family {
l2vpn-evpn {
advertise-all-vni
vni 100 {
advertise-svi-ip
rd 65023:100000100
route-target {
export 65002:1
import 65000:100
}
}
}
}
neighbor 10.32.1.2 {
peer-group RS-EVPN
}
parameters {
log-neighbor-changes
router-id 10.32.0.41
}
peer-group RS-EVPN {
address-family {
l2vpn-evpn {
route-map {
export RS-OUT
}
}
}
capability {
extended-nexthop
}
ebgp-multihop 32
remote-as 65020
update-source dum0
}
system-as 65023
}
}Checking the route:
vtysh -c "show bgp l2vpn evpn route rd 65023:100000100 type 3"
EVPN type-1 prefix: [1]:[EthTag]:[ESI]:[IPlen]:[VTEP-IP]:[Frag-id]
EVPN type-2 prefix: [2]:[EthTag]:[MAClen]:[MAC]
EVPN type-3 prefix: [3]:[EthTag]:[IPlen]:[OrigIP]
EVPN type-4 prefix: [4]:[ESI]:[IPlen]:[OrigIP]
EVPN type-5 prefix: [5]:[EthTag]:[IPlen]:[IP]
BGP routing table entry for 65023:100000100:[3]:[0]:[32]:[10.32.0.43]
Paths: (1 available, best #1)
Not advertised to any peer
Route [3]:[0]:[32]:[10.32.0.43] VNI 100
Local
10.32.0.43 from 0.0.0.0 (10.32.0.41)
Origin IGP, weight 32768, valid, sourced, local, best (First path received)
Extended Community: ET:8 RT:65002:1
Last update: Tue Jun 13 14:58:40 2023
PMSI Tunnel Type: Ingress Replication, label: 100
Displayed 1 prefixes (1 paths) with this RD (of requested type)This route is not advertised to any peer. As a result, any multicast and broadcast traffic is not routed.
If I turn off the route map, the problem with route advertising goes away:
delete protocols bgp peer-group RS-EVPN address-family l2vpn-evpn route-map export commit exit
Checking the route:
vtysh -c "show bgp l2vpn evpn route rd 65023:100000100 type 3"
EVPN type-1 prefix: [1]:[EthTag]:[ESI]:[IPlen]:[VTEP-IP]:[Frag-id]
EVPN type-2 prefix: [2]:[EthTag]:[MAClen]:[MAC]
EVPN type-3 prefix: [3]:[EthTag]:[IPlen]:[OrigIP]
EVPN type-4 prefix: [4]:[ESI]:[IPlen]:[OrigIP]
EVPN type-5 prefix: [5]:[EthTag]:[IPlen]:[IP]
BGP routing table entry for 65023:100000100:[3]:[0]:[32]:[10.32.0.43]
Paths: (1 available, best #1)
Advertised to non peer-group peers:
10.32.1.2
Route [3]:[0]:[32]:[10.32.0.43] VNI 100
Local
10.32.0.43 from 0.0.0.0 (10.32.0.41)
Origin IGP, weight 32768, valid, sourced, local, best (First path received)
Extended Community: ET:8 RT:65002:1
Last update: Tue Jun 13 14:58:40 2023
PMSI Tunnel Type: Ingress Replication, label: 100
Displayed 1 prefixes (1 paths) with this RD (of requested type)Route advertised, multicast traffic routed.