summaryrefslogtreecommitdiff
path: root/lib/routemap.h
diff options
context:
space:
mode:
authorAmeya Dharkar <adharkar@vmware.com>2021-05-21 02:04:00 -0700
committerAmeya Dharkar <adharkar@vmware.com>2021-06-07 17:58:22 -0700
commitd0a4ee6010a6ba66aee396c2fe56e4ec6b45a553 (patch)
treea86d8c69dd92b8040a57ed286eca7f7b19b0cace /lib/routemap.h
parent9c97bc44468a03c58b62ffe789ee93561f8a846e (diff)
bgpd: Add "set evpn gateway-ip" clause for route-map
- Add following set clause for route-maps "set evpn gateway-ip <ipv4|ipv6 >A.B.C.D|X:X::X:X" - When this route-map is applied as outboubd policy in BGP, it will set the gateway-ip in BGP attribute For EVPN type-5 routes. Example configuration: route-map RMAP-EVPN_GWIP permit 5 set evpn gateway-ip ipv4 50.0.2.12 set evpn gateway-ip ipv6 50:0:2::12 router bgp 101 bgp router-id 10.100.0.1 neighbor 10.0.1.2 remote-as 102 ! address-family l2vpn evpn neighbor 10.0.1.2 activate neighbor 10.0.1.2 route-map RMAP-EVPN_GWIP out advertise-all-vni exit-address-family Signed-off-by: Ameya Dharkar <adharkar@vmware.com>
Diffstat (limited to 'lib/routemap.h')
-rw-r--r--lib/routemap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/routemap.h b/lib/routemap.h
index 5b6b64eaeb..4d76ae1536 100644
--- a/lib/routemap.h
+++ b/lib/routemap.h
@@ -366,6 +366,10 @@ DECLARE_QOBJ_TYPE(route_map);
(strmatch(A, "frr-bgp-route-map:ipv4-vpn-address"))
#define IS_SET_BGP_IPV4_NH(A) \
(strmatch(A, "frr-bgp-route-map:set-ipv4-nexthop"))
+#define IS_SET_BGP_EVPN_GATEWAY_IP_IPV4(A) \
+ (strmatch(A, "frr-bgp-route-map:set-evpn-gateway-ip-ipv4"))
+#define IS_SET_BGP_EVPN_GATEWAY_IP_IPV6(A) \
+ (strmatch(A, "frr-bgp-route-map:set-evpn-gateway-ip-ipv6"))
/* Prototypes. */
extern void route_map_init(void);