netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Add a group ID field to the IP address model

Open jeremystretch opened this issue 8 years ago • 3 comments

Environment

  • Python version: 3.5.2
  • NetBox version: 2.4.4

Proposed Functionality

Add a numeric group_id field to the ipam.IPAddress model, which accept a value between 0 and 255 (incusive).

Use Case

Although NetBox allows for the designation of an IP address as a virtual/shared IP address (e.g. VRRP, HSRP, etc.), it does not provide a mechanism to associate the IP with a particular group within an interface. For example, VRRP requires the definition of a group ID (0-255), which is used to generate the virtual MAC address for the shared IP address.

Database Changes

Add the field to the IPAddress model. This will require a new database migration.

External Dependencies

None

jeremystretch avatar Sep 24 '18 20:09 jeremystretch

@jeremystretch the range 0 to 255 will cover VRRP and HSRPv1, but HSRPv2 has an extended range of 0 to 4095. I like to match up the HSRP group to the vlan number for consistency so I have a lot of HSRP groups above 255.

techrazor avatar Oct 20 '18 16:10 techrazor

We came to the same 'issue' that we wanted to register VR-ID's .. For now we ended up adding a custom field to a vlan.

ebais avatar Sep 11 '20 14:09 ebais

Closing this in favor of a more complete implementation as proposed under #6235.

jeremystretch avatar Apr 21 '21 23:04 jeremystretch