Help on customlinks/nbshell that worked with older netbox #10749
phurrelmann
started this conversation in
General
Replies: 1 comment
-
Call it without parenthesis. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
we've updated an quite old netbox instance from 2.7.12 to 3.3.5 and we have failing custom-links that worked in 2.7.12.
I tried to debug and adjust the link (most probably there were changes in netbox), but I fail to resolve the issue.
The custom-link in question filters the ip-addresses assigned to an vc_interface:
https://{{ obj.vc_interfaces.get(mgmt_only=True).ip_addresses.get(family=4).address.ip }}/
If I try to debug that via nbshell I'm stuck. The get() and filter() functions work on the vc_interfaces object, but I can't get any details beyond ip_addresses().
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions