We are trying to use netbox to document our devices like loadbalancers and firewalls including IPs and would like to assign correct 'IP address roles'
However, there is no way to create custom roles, which would be great but was rejected in
https://github.com/netbox-community/netbox/issues/1904In our case we are dealing with F5 loadbalancers in HA setups
each loadbalancer has its own IP called 'selfip' for each vlan interface
additionally there are selfips which are active only on the active member of a traffic group (let's call those 'floating'), like HSRP
On top there are the virtual server IPs that can be created on the devices
Our plan/wish is to define the loadbalancers and add the selfips as interface IPs to each vlan on the LBs
Then create a virtual chassis and add the virtual server IPs and 'floating' IPs to the chassis
this would look like this in the 'IP addresses' import:
address,status,device,interface_name,role,description
172.16.1.1/32,Active,netbox-lb1,vlan1,,
172.16.1.2/32,Active,netbox-lb1-1,vlan1,,
172.16.1.3/32,Active,netbox-lb1-2,vlan1,,
172.16.2.1/32,Active,netbox-lb1,vlan2,,
172.16.2.2/32,Active,netbox-lb1-1,vlan2,,
172.16.2.3/32,Active,netbox-lb1-2,vlan2,,
172.16.1.11/32,Active,netbox-lb1,vlan1,VIP,virtualserver1172.16.1.12/32,Active,netbox-lb1,vlan1,VIP,virtualserver2172.16.2.11/32,Active,netbox-lb1,vlan1,VIP,virtualserver3172.16.2.12/32,Active,netbox-lb1,vlan1,VIP,virtualserver4So VIP would be a matching role for a virtual server IP but there is none for the selfips of the devices.
Now this role would be exactly in the same context as 'e.g. loopback or anycast and not associated with any special purpose, which was the reason for originally rejecting request above.
Of course we could add tags to mark those IPs and filter by those tags, in case we'd like to get a list of selfips, but those tags would not be displayed in the device view in the GUI like the VIP role.