Skip to content
Discussion options

You must be logged in to vote

There is no attribute side_a_device on the Cable model. And I'm afraid that the CSV import columns can't be used as a guide (nor the CSV export for that matter).

To explore the available attributes, use nbshell.

source /opt/netbox/venv/bin/activate
python /opt/netbox/netbox/manage.py nbshell

>>> c = Cable.objects.first()
>>> c.side_a_device
Traceback (most recent call last):
  File "<console>", line 1, in <module>
AttributeError: 'Cable' object has no attribute 'side_a_device'

help(Cable) gives the detailed info, or dir(c) on an individual cable object, which you can then filter:

>>> [n for n in dir(c) if "a_" in n]
['a_terminations']

Note that recent versions of Netbox allow a single …

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Joelp
Comment options

You must be logged in to vote
2 replies
@candlerb
Comment options

@Joelp
Comment options

Comment options

You must be logged in to vote
6 replies
@Bottman99
Comment options

@candlerb
Comment options

@msmithaxesssystemscouk
Comment options

@candlerb
Comment options

@msmithaxesssystemscouk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants