diff options
author | Ameya Dharkar <adharkar@vmware.com> | 2020-12-30 02:39:16 +0100 |
---|---|---|
committer | Ameya Dharkar <adharkar@vmware.com> | 2021-06-08 02:58:22 +0200 |
commit | 9c97bc44468a03c58b62ffe789ee93561f8a846e (patch) | |
tree | 4da4a10213a6c0e4e17bbe09b35a92b38e394784 /bgpd/bgp_attr_evpn.h | |
parent | Merge pull request #8806 from donaldsharp/established (diff) | |
download | frr-9c97bc44468a03c58b62ffe789ee93561f8a846e.tar.xz frr-9c97bc44468a03c58b62ffe789ee93561f8a846e.zip |
bgpd: Data structure for gateway IP overlay Index
"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>
Diffstat (limited to 'bgpd/bgp_attr_evpn.h')
-rw-r--r-- | bgpd/bgp_attr_evpn.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bgpd/bgp_attr_evpn.h b/bgpd/bgp_attr_evpn.h index 6fdf73fd1..102509fdd 100644 --- a/bgpd/bgp_attr_evpn.h +++ b/bgpd/bgp_attr_evpn.h @@ -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; }; |