]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Data structure for gateway IP overlay Index
authorAmeya Dharkar <adharkar@vmware.com>
Wed, 30 Dec 2020 01:39:16 +0000 (17:39 -0800)
committerAmeya Dharkar <adharkar@vmware.com>
Tue, 8 Jun 2021 00:58:22 +0000 (17:58 -0700)
"struct bgp_route_evpn" is used to store an overlay index.
Add a "type" for overlay index.

Signed-off-by: Ameya Dharkar <adharkar@vmware.com>
bgpd/bgp_attr_evpn.h

index 6fdf73fd1e32583fed6aa4883dcace75131c8e5e..102509fdd712e5323b134c0a9d5df0cd56714893 100644 (file)
@@ -30,7 +30,21 @@ union gw_addr {
        struct in6_addr ipv6;
 };
 
+enum overlay_index_type {
+       OVERLAY_INDEX_TYPE_NONE,
+       OVERLAY_INDEX_GATEWAY_IP,
+       OVERLAY_INDEX_ESI,
+       OVERLAY_INDEX_MAC,
+};
+
+/*
+ * Structure to store ovrelay index for EVPN type-5 route
+ * This structure stores ESI and Gateway IP overlay index.
+ * MAC overlay index is stored in the RMAC attribute.
+ */
 struct bgp_route_evpn {
+       enum overlay_index_type type;
+       esi_t eth_s_id;
        union gw_addr gw_ip;
 };