-
I have Netbox v3.4.4 and 'Reports' is not working properly.
Is anyone having same issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It looks like an error in your report. Can you show the code? The string What you probably want is |
Beta Was this translation helpful? Give feedback.
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.