define subnet size with get_available_prefixes() in netbox script #11605
Unanswered
JohnnyWalker2020
asked this question in
Q&A
Replies: 1 comment
-
Did you ever figure this out? Currently trying to do this too. edit: To get the next available, use get_first_available_prefix()
|
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.
-
Im pretty new to this still, so go easy on me.
Im trying to create a /30 out of a /24 prefix using the Netbox Scripts. I can do this using the REST_API, but im trying to do this in the Netbox Scripts.
When I use Prefix.get_available_prefixes() it gives me a list of all available prefixes of all prefix lengths.
How do I define the next available /30 subnet???
Beta Was this translation helpful? Give feedback.
All reactions