-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check for vxlan mapping before removing vlan #2388
Conversation
check for vxlan mapping before removing vlan
|
config/vlan.py
Outdated
@@ -60,6 +60,11 @@ def del_vlan(db, vid): | |||
|
|||
if keys: | |||
ctx.fail("VLAN ID {} can not be removed. First remove all members assigned to this VLAN.".format(vid)) | |||
|
|||
vxlan_table = db.cfgdb.get_table('VXLAN_TUNNEL_MAP') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we have to set this restriction? will there be any ASIC failures?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is leaving behind vxtunnel maps in the configdb to vlans that have been removed. its messy
@ITJamie Can you please resolve conflicts? |
conflicts resolved |
tests are passing now |
@ITJamie please raise separate PR for 202205. This PR cannot be cherry-picked cleanly. |
* [Vxlan] check for vxlan mapping before removing vlan
@ITJamie Can you please raise a PR for 202205? |
* [Vxlan] check for vxlan mapping before removing vlan
* [Vxlan] check for vxlan mapping before removing vlan
* [Vxlan] check for vxlan mapping before removing vlan
* [Vxlan] check for vxlan mapping before removing vlan
* [Vxlan] check for vxlan mapping before removing vlan
issue: #2381
What I did
check for vxlan mapping before removing vlan
How I did it
added a check similar to vlan member above
How to verify it
attempt to delete a vlan that has a vxlan mapping in place