Filter ip-addresses in prefix #657
-
Hi I am trying to find a way to filter the existing IP-addresses in a specific prefix, but have been unable to find a way. Seems like such a trivial thing, but the answer evades me. :( I am looking for something like this, but using pynetbox, not custom scripts: netbox-community/netbox#9487 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
got the answer from a colleague: nb_ip_addesses = nb.ipam.ip_addresses.filter(parent=str(nb_prefix),vrf_id=nb_vrf.id) |
Beta Was this translation helpful? Give feedback.
got the answer from a colleague:
nb_ip_addesses = nb.ipam.ip_addresses.filter(parent=str(nb_prefix),vrf_id=nb_vrf.id)