Skip to content
Discussion options

You must be logged in to vote

It looks like an error in your report. Can you show the code?

The string IPADDRESS_ROLE_LOOPBACK does not appear anywhere in the current Netbox source code, so I suspect you've taken a report which was written for an older version of Netbox. I'm afraid Netbox makes no guarantees at all about forward or backward compatibility of any APIs, including the REST API and the reports/scripts APIs. When you upgrade Netbox, it's up to you to follow the release notes and make any necessary changes on your side.

What you probably want is IPAddressRoleChoices.ROLE_LOOPBACK. See example code here.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kms71271
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants