Dedicated model for redundancy protocol instances #4801

Closed
opened 2025-12-29 19:20:46 +01:00 by adam · 1 comment
Owner

Originally created by @WilliamDEdwards on GitHub (Apr 21, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v2.11.1

Feature type

New functionality

Proposed functionality

Dedicated model for e.g. VRRP and HSRP instances.

A typical instance configuration only needs an interface, VRID and VIPs. Keeping track of VRIDs in IP Address objects (as proposed in https://github.com/netbox-community/netbox/issues/2456) would allow us to store these basic attributes in NetBox. Information like tenant and interface could be derived from objects linked to the the IP Address object.

However, some properties are instance-specific, like priority. To use NetBox as Source of Truth for e.g. Keepalived configurations, we have to keep track of these properties, but they cannot be saved in another object.

Use case

Keeping track of instance information would allow for:

Database changes

The proposal requires adding a new model.

Many redundancy protocols share basic properties, like priority. Redundancy protocol specific fields (e.g. HSRP use-bia) should be added by users themselves to prevent overcomplicating the model.

External dependencies

Unsure.

Originally created by @WilliamDEdwards on GitHub (Apr 21, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v2.11.1 ### Feature type New functionality ### Proposed functionality Dedicated model for e.g. VRRP and HSRP instances. A typical instance configuration only needs an interface, VRID and VIPs. Keeping track of VRIDs in IP Address objects (as proposed in https://github.com/netbox-community/netbox/issues/2456) would allow us to store these basic attributes in NetBox. Information like tenant and interface could be derived from objects linked to the the IP Address object. However, some properties are instance-specific, like priority. To use NetBox as Source of Truth for e.g. Keepalived configurations, we have to keep track of these properties, but they cannot be saved in another object. ### Use case Keeping track of instance information would allow for: * Using NetBox as Source of Truth for e.g. Keepalived configurations * Getting the next available VRID (like https://github.com/netbox-community/netbox/issues/1246) ### Database changes The proposal requires adding a new model. Many redundancy protocols share basic properties, like priority. Redundancy protocol specific fields (e.g. HSRP `use-bia`) should be added by users themselves to prevent overcomplicating the model. ### External dependencies Unsure.
adam added the status: acceptedtype: feature labels 2025-12-29 19:20:46 +01:00
adam closed this issue 2025-12-29 19:20:46 +01:00
Author
Owner

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

This is probably a better encapsulation of the intent behind #2456. I'm going to close that one out in favor of this FR.

@jeremystretch commented on GitHub (Apr 22, 2021): This is probably a better encapsulation of the intent behind #2456. I'm going to close that one out in favor of this FR.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4801