netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Extend Device Components to Cluster Parents

Open ravinald opened this issue 2 years ago • 1 comments

NetBox version

v3.6.1

Feature type

Change to existing functionality

Proposed functionality

Note: This feature type might actually be a little of all three -- Change to existing functionality, New functionality, and Data model extension

At a high level, the feature is to extend Device Components to Cluster parents via having a Cluster map to an existing Device that already has Components configured. This relationship would be optional during the Cluster creation.

At each component type (and form) would have a new BOOL to sets whether the values are inheritable by children when they are added to a cluster.

Some issues/considerations would be reconciling any Components that may already be configured on a Device being added to a Cluster object as a child. One possibility could to display a warning that adding a member will overwrite any existing Components and inherit all respective values from the parent.

Use case

Some network devices that operate in a cluster mode have floating IPs. Ostensibly the nodes have the same physical configuration and properties -- power, line cards, interfaces, etc. In a active/standby configuration, specifically, the standby node has the same interface configurations with the exception of, for example, management, in/out of band, tap, and console.

Currently Virtualization does not have much data related to Cluster parents and/or their children, and clusters of this type are not the same as Virtual Chassis, but reminiscent of them.

Database changes

Possibly. I don't want to prescribe how something like this would be best implemented. That said, some tables that may need to be touched are:

  1. dcim_{interface, consoleport, etc} - Add a BOOL is_inheritable which would be used when adding a Device to a Cluster.
  2. dcim_device - Add a BOOL is_cluster_parent which would be mutually exclusive with cluster_id.
  3. virtualization_cluster - Add device_id which will act as the parent device

External dependencies

No response

Edit: a word

ravinald avatar Oct 07 '23 00:10 ravinald

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

github-actions[bot] avatar Jan 24 '24 04:01 github-actions[bot]

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

github-actions[bot] avatar Feb 23 '24 04:02 github-actions[bot]