Skip to content
Discussion options

You must be logged in to vote

Netbox uses the netaddr library, not ipaddress. You can find examples in the test suite, e.g. netbox/ipam/tests/test_ordering.py

import netaddr
...
IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf1, address=netaddr.IPNetwork('10.0.0.1/24')),

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SRF-rueeggdo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants