mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 18:04:03 +00:00
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>
This commit is contained in:
parent
072d821684
commit
9c97bc4446
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user