ip-ranges dhcp status is not one of the valid choices
pvl1 opened this issue · 3 comments
current location of issue: ipaddress_filter={'status': 'dhcp'}
netbox docs explicitly state:
Statuses are hard-coded in NetBox and can be one of the following:
- Container - A summary of child prefixes
- Active - Provisioned and in use
- Reserved - Designated for future use
- Deprecated - No longer in use
I'd suggest to change this to roles
or, is there a plugin that creates extra status fields?
Hi pvl1,
The quoted text apply on prefixes. ipaddress_filter={'status': 'dhcp'}
relies on a netbox hard-coded status value as found in the same page at IP Address section.
The filter for IP ranges relying on a DHCP value is only a default filter which may be overidden in config file. It makes use of custom statuses as documented by netbox here. This choice was made to follow IP Addresse hard-coded filter but only when no other filter is defined in config file.
Maybe link about customizable IP range status should be inserted in README ?
from netbox slack, it was suggested to either modify netbox config to include statuses (netbox-community/netbox#8054) or to use tags
I think it'd be nice to include this in the readme