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_vxlan_private.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_vxlan_private.h')
| -rw-r--r-- | zebra/zebra_vxlan_private.h | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/zebra_vxlan_private.h b/zebra/zebra_vxlan_private.h index 6da45b214e..4296640f78 100644 --- a/zebra/zebra_vxlan_private.h +++ b/zebra/zebra_vxlan_private.h @@ -51,6 +51,10 @@ struct zebra_l3vni {  	uint32_t filter;  #define PREFIX_ROUTES_ONLY	(1 << 0) /* l3-vni used for prefix routes only */ +	/* Corresponding Bridge information */ +	vlanid_t vid; +	struct interface *bridge_if; +  	/* Local IP */  	struct in_addr local_vtep_ip;  | 
