Skip to content
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

Merged
merged 10 commits into from
Sep 30, 2022
Merged

Conversation

ITJamie
Copy link
Contributor

@ITJamie ITJamie commented Sep 20, 2022

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

check for vxlan mapping before removing vlan
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 20, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: ITJamie / name: Jamie (Bear) Murphy (348eff3)

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')
Copy link
Contributor

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?

Copy link
Contributor Author

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

dgsudharsan
dgsudharsan previously approved these changes Sep 28, 2022
@dgsudharsan
Copy link
Collaborator

@ITJamie Can you please resolve conflicts?

@ITJamie
Copy link
Contributor Author

ITJamie commented Sep 28, 2022

conflicts resolved

@ITJamie
Copy link
Contributor Author

ITJamie commented Sep 28, 2022

tests are passing now

@ITJamie ITJamie requested a review from dgsudharsan September 28, 2022 23:05
@prsunny prsunny merged commit 156257e into sonic-net:master Sep 30, 2022
@yxieca
Copy link
Contributor

yxieca commented Oct 3, 2022

@ITJamie please raise separate PR for 202205. This PR cannot be cherry-picked cleanly.

EdenGri pushed a commit to EdenGri/sonic-utilities that referenced this pull request Oct 12, 2022
* [Vxlan] check for vxlan mapping before removing vlan
@dgsudharsan
Copy link
Collaborator

@ITJamie Can you please raise a PR for 202205?

dgsudharsan pushed a commit to dgsudharsan/sonic-utilities that referenced this pull request Oct 18, 2022
* [Vxlan] check for vxlan mapping before removing vlan
dgsudharsan pushed a commit to dgsudharsan/sonic-utilities that referenced this pull request Oct 18, 2022
* [Vxlan] check for vxlan mapping before removing vlan
dgsudharsan pushed a commit to dgsudharsan/sonic-utilities that referenced this pull request Oct 18, 2022
* [Vxlan] check for vxlan mapping before removing vlan
liat-grozovik pushed a commit that referenced this pull request Oct 18, 2022
- What I did
Backporting #2388 to 202205
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
mdanish-kh pushed a commit to hamnarauf/sonic-utilities that referenced this pull request Oct 22, 2022
* [Vxlan] check for vxlan mapping before removing vlan
preetham-singh pushed a commit to preetham-singh/sonic-utilities that referenced this pull request Nov 21, 2022
* [Vxlan] check for vxlan mapping before removing vlan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants