Page MenuHomeVyOS Platform

Unable to advertise EVPN type 3 (multicast) routes when using a route-map
Open, NormalPublicBUG

Description

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.

Details

Difficulty level
Unknown (require assessment)
Version
1.4-rolling-202306130317
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Behavior change
Issue type
Bug (incorrect behavior)

Event Timeline

I opened an issue on github:

https://github.com/FRRouting/frr/issues/13792

And I got the answer to my question:

Can you try disabling route-map optimization for that route-map and seeing if that helps?

no route-map RS-OUT optimization

Is there a way to disable route map optimization in vyos config?

dmbaturin triaged this task as Normal priority.Jan 11 2024, 11:23 AM
dmbaturin added a project: VyOS 1.5 Circinus.