diff options
| author | Sharath Ramamurthy <sramamurthy@nvidia.com> | 2021-07-27 14:54:40 +0530 | 
|---|---|---|
| committer | Stephen Worley <sworley@nvidia.com> | 2023-02-13 18:12:04 -0500 | 
| commit | efde4f25612fb3a690ed1e0ce789a490f949bb2e (patch) | |
| tree | 50630ce82382f9009ec471472a2ec2d244c103ab /zebra/zebra_evpn.h | |
| parent | 239b26f932e5b78828dce8f7fe628c12b7ddbd9f (diff) | |
zebra: Refactoring changes for zebra_evpn_map_vlan zebra_evpn_from_svi and zl3vni_from_svi
Today to find the vni for a given (vlan, bridge) we walk over all interfaces
and filter the vxlan device associated with the bridge. With multiple vlan aware
bridge changes, we can derive the vni directly by looking up the hash table i.e.
the vlan_table of the associated (vlan, bridge) which would give the vni.
During vrf_terminate() call zebra_l2_bridge_if_cleanup if the interface
that we are removing is of type bridge. In this case, we walk over all
the vlan<->access_bd association and clean them up.
zebra_evpn_t is modified to record (vlan, bridge) details and the
corresponding vty is modified to print the same.
zevpn_bridge_if_set and zl3vni_bridge_if_set is used to set/unset the
association.
Signed-off-by: Sharath Ramamurthy <sramamurthy@nvidia.com>
Diffstat (limited to 'zebra/zebra_evpn.h')
| -rw-r--r-- | zebra/zebra_evpn.h | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/zebra_evpn.h b/zebra/zebra_evpn.h index 5dd54a117e..b07c6515b2 100644 --- a/zebra/zebra_evpn.h +++ b/zebra/zebra_evpn.h @@ -84,6 +84,10 @@ struct zebra_evpn {  	uint32_t flags;  #define ZEVPN_READY_FOR_BGP (1 << 0) /* ready to be sent to BGP */ +	/* Corresponding Bridge information */ +	vlanid_t vid; +	struct interface *bridge_if; +  	/* Flag for advertising gw macip */  	uint8_t advertise_gw_macip;  | 
