IP Range filter by Prefix #552
jscmenezes
started this conversation in
General
Replies: 0 comments
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,
I am trying to filter IPRanges contained in a prefix.
Ex.: I have 3 IP Ranges
10.54.100.65-71/28
10.54.100.72-78/28
10.54.235.0-95/23
and want to filter the range contained in the prefix 10.54.234.0/23. I am using:
nb_ranges = netbox.ipam.ip_ranges.filter(start_address__host_net_contained='10.54.234.0/23', end_address__host_net_contained='10.54.234.0/23')
but with no success.
Any help?
Beta Was this translation helpful? Give feedback.
All reactions