question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deleting vlan deployed on interface causes Server Error

See original GitHub issue

Environment

  • Python version: 3.8.7
  • NetBox version: 2.10.4

Steps to Reproduce

  1. Create a VLAN (specify VID and VLAN name, no specific configuration needed)
  2. Use this vlan as access on a interface: select an interface in a device, configure 802.1q mode (say access), select previously created vlan in “Untagged VLAN”. Please note it also works when using the tagged option.
  3. Delete the previously created VLAN (select VLAN, delete, confirm).
  4. Go back to the page of the interface => the Server Error occurs.

Expected Behavior

Option A: prevent VLAN from being delete as configuration of interface depends on it. Option B: delete the vlan from the configuration of the interface when the vlan is deleted from NetBox.

Observed Behavior

Following error occurs when browsing the interface:

<class 'ipam.models.VLAN.DoesNotExist'>

VLAN matching query does not exist.

Python version: 3.8.7
NetBox version: 2.10.4

I would favor option B, as from a user standpoint, deleting a vlan should remove this vlan on all interfaces. However, dealing with access interfaces could be more tricky…

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
netixxcommented, Mar 2, 2021

I updated my original post above. I really didn’t do anything specific to trigger this behaviour. Please let me know if I need to provide any additionnal information or steps.

0reactions
jeremystretchcommented, Jul 26, 2021

Closing this out as caching is being removed in v3.0. The workaround for now is to disable caching by setting CACHE_TIMEOUT = 0 in configuration.py.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Cannot delete/modify ACE While the ACL is bound to an ...
The tech who implemented our network quit. I'm trying to modify the switch. We have some Cisco SX550X-12F switches. The tech setup vlans...
Read more >
Delete Vlan authorization error (ERRCODE: 350) - Huawei S Series ...
Why Is the Downlink Interface Blocked by STP Packets and the Service interrupted When the Downlink Interface of a Switch Is Connected to...
Read more >
VLAN Tutorial: How to Configure, Verify and Troubleshoot
Step 1: Check cable and switch port · Step 2: Check switch interface configuration · Step 3: Check host communication.
Read more >
Configure VLANs over physical ports - Product documentation
You can manage VLANs by creating, deleting, or displaying information about them. Note, You should not create a VLAN on a network interface...
Read more >
problem in deleting an interface | Switching
Because you're trying to assign an interface that no longer exists to a vlan. Delete the interface from the vlan and try committing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found