Skip to content

/available-ips/ response code incorrect for newer Netbox versions #5

@kyle-burnett

Description

@kyle-burnett

Since v3.1.1 Netbox returns 409 for exhausted prefixes instead of 204 netbox-community/netbox#7519

So this check no longer works and the tests fail once the prefix is full:

if result.status_code == 204:
raise RuntimeError

Not sure if this is maintained or not, so just putting this here incase anyone else tries to use this on newer Netbox versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions