]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: evpn route-map match esr type-4 route-type
authorChirag Shah <chirag@nvidia.com>
Fri, 11 Feb 2022 03:35:14 +0000 (19:35 -0800)
committerChirag Shah <chirag@nvidia.com>
Thu, 17 Feb 2022 17:55:00 +0000 (09:55 -0800)
commit2514d231905f9abc9c8d5783af3da0c672348fc4
treed267f35b92b5ba5f385fed976e428f220b9d1f8c
parentbd44ab083155186c21d5296e91bf211627370453
bgpd: evpn route-map match esr type-4 route-type

Testing:

After fix:

bharat(config-route-map)# match evpn route-type
  1          EAD (Type-1) route
  2          MAC-IP (Type-2) route
  3          Multicast (Type-3) route
  4          Ethernet Segment (Type-4) route <----
  5          Prefix (Type-5) route
  ead        EAD (Type-1) route
  es         Ethernet Segment (Type-4) route
  macip      MAC-IP (Type-2) route
  multicast  Multicast (Type-3) route
  prefix     Prefix (Type-5) route

bharat(config-route-map)# match evpn route-type 4
bharat(config-route-map)# do show running-config
Building configuration...
...
!
route-map ALLOW_EVPN_R permit 10
 match evpn route-type es    <----
exit

BGP:
route-map: ALLOW_EVPN_R Invoked: 0 Optimization: enabled Processed Change: false
 permit, sequence 10 Invoked 0
  Match clauses:
    evpn route-type es  <-----
  Set clauses:
  Call clause:
  Action:
    Exit routemap

Signed-off-by: Chirag Shah <chirag@nvidia.com>
bgpd/bgp_routemap.c
yang/frr-bgp-route-map.yang