Strange error adding cable

25 views
Skip to first unread message

xav....@gmail.com

unread,
Jul 28, 2021, 6:20:30 AM7/28/21
to NetBox
I've come across a strange issue adding cables from one device (storage device to network switch).
If, from the storage device, I click on the add cable button, select interface and then pick the remote network switch's interface port, I get the following error:

<class 'dcim.models.cables.Cable.DoesNotExist'>
Cable matching query does not exist.
Python version: 3.8.5
NetBox version: 2.11.7 

However, if I go to the network switch device and do the same thing and go to add a cable back to the storage device, it works!

Any ideas? 

Brian Candler

unread,
Jul 28, 2021, 8:22:35 AM7/28/21
to NetBox
If you've just deleted a cable, you may need to wait 15 minutes before reconnecting the port because of a caching issue.

The workaround is to set
CACHE_TIMEOUT = 0
in configuration.py (which will probably become the default in future, as the caching layer is planned to be removed)

Reply all
Reply to author
Forward
0 new messages