]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Filtering received EVPN routes based on VNI does not work 4078/head
authorLakshman Krishnamoorthy <lkrishnamoor@vmware.com>
Fri, 31 May 2019 17:22:11 +0000 (10:22 -0700)
committerLakshman Krishnamoorthy <lkrishnamoor@vmware.com>
Fri, 31 May 2019 17:22:11 +0000 (10:22 -0700)
commite241544469ab880da97db8edbc9d21e9cb000257
tree761a567941420fdff7bca0e31dcffdbd32eab9b9
parent4cc136532f31634bda173ce919c0a69605bc7fa7
bgpd: Filtering received EVPN routes based on VNI does not work

Issue1: When "neighbor X.X.X.X route-map RM-VNI-FILTER in" is configured under evpn address-family,
all the received routes are dropped regardless of whether the route has a matching vni or not.

Issue2: Routes with 2 labels are not filtered correctly

Issue3: Interpreting the label based on tunnel type, vxlan was not done correctly.
Vxlan label has 24 bits, whereas, MPLS label is 20 bits long

Fix1: The handler bgp_update() that services the received route ignored the route's label while deciding whether to filter it or not. As part of the fix, the handler now uses the label info to make the decision about whether to filter the route or not.

Fix2: route_match_vni() now tries to match both the labels within the route, not just the one.

Signed-off-by: Lakshman Krishnamoorthy <lkrishnamoor@vmware.com>
bgpd/bgp_route.c
bgpd/bgp_routemap.c