Add a group ID field to the IP address model #2024

Closed
opened 2025-12-29 17:21:33 +01:00 by adam · 3 comments
Owner

Originally created by @jeremystretch on GitHub (Sep 24, 2018).

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

Originally created by @jeremystretch on GitHub (Sep 24, 2018). ### 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
adam added the type: feature label 2025-12-29 17:21:33 +01:00
adam closed this issue 2025-12-29 17:21:33 +01:00
Author
Owner

@techrazor commented on GitHub (Oct 20, 2018):

@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 commented on GitHub (Oct 20, 2018): @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.
Author
Owner

@ebais commented on GitHub (Sep 11, 2020):

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 commented on GitHub (Sep 11, 2020): 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.
Author
Owner

@jeremystretch commented on GitHub (Apr 22, 2021):

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

@jeremystretch commented on GitHub (Apr 22, 2021): Closing this in favor of a more complete implementation as proposed under #6235.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2024