Replies: 2 comments 6 replies
-
Query parameters should be a dictionary of parameters to pass to the API query. Instead, what you likely need is to override the URL for this. You likely need to write a custom field object for this use case. |
Beta Was this translation helpful? Give feedback.
6 replies
-
Hi,I made that component. It is based on ChoiceField and APISelect widget and supports selection of available models (such as VLAN, prefixes, addresses). The list of models is obtained dynamically via API. The component is provided as a plugin. Perhaps this will be useful to someone else. |
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
-
Hi!
I'm currently writing a script which is supposed to add a new router, connect it to the respective edge router and populate the relevant interfaces with available IP adresses. It is supposed to get these IP adresses from prefixes with a specific role.
What I'm struggling with is how to populate an objectVar() with IP addresses and prefixes which do not exist yet in the database. I understand that the prefix.get_available_ips() and prefix.get_available_prefixes() function will get me these nonexisting objects, but I'm missing how to get these into the options a user is presented with when using objectVar().
Here is what I've got up to now:
The error it throws is "'ObjectVar' object has no attribute 'get_available_ips'".
That makes in essence two questions:
Beta Was this translation helpful? Give feedback.
All reactions