]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix evpn route-map vni filter at origin
authorChirag Shah <chirag@nvidia.com>
Thu, 10 Dec 2020 21:59:56 +0000 (13:59 -0800)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 20 Jan 2021 15:37:28 +0000 (18:37 +0300)
commit4883a06c32eec4111ea666bd746fea3e55af6f56
tree209dcf30bf82726e5a06812096ad15fbc5da2b29
parent9c087052a53971ba6fb8bd4e2c7d2700e5608760
bgpd: fix evpn route-map vni filter at origin

evpn route-map match (filter) on vni is not working
at the origin of the routes.

evpn match vni route checks for encap type as vxlan.
the source route attribute is not set with vxlan encap
thus the match filter wouldn't work.

Ticket:CM-32554
Reviewed By:CCR-11056
Testing Done:

At source have match vni plus set statement in route-map.
Validate the origin of the route's outbound correctly sets
the 'set' statment based on match vni filter.

At origin:
route-map RM-EVPN-TE-Matches permit 10
 match evpn vni 4001
  set large-community 10:10:119

Receiving end:

Route [5]:[0]:[24]:[78.41.1.0] VNI 4001
5550
  27.0.0.15 from TORS1(downlink-5) (27.0.0.15)
    Origin incomplete, metric 0, valid, external, bestpath-from-AS 5550, best (First path received)
    Extended Community: RT:5550:4001 ET:8 Rmac:00:02:00:00:00:4d
    Large Community: 10:10:119    <--- Large community stamped
    Last update: Thu Dec 10 22:19:26 2020

Signed-off-by: Chirag Shah <chirag@nvidia.com>
bgpd/bgp_evpn.c