references support? #6849
Replies: 2 comments 2 replies
-
I think a simple plugin could address this in the best way. View - select device: View - Interface list: When selecting the new interface a submit button can save this planned Second action "stage" could dump all setting from old to new interface, so an automation can now prepare the new port with vlans etc. Last action "Patch" is the physical part of a remote hand to switchover the cable from old to new. Behind netbox will deactivate the old port and optional swap the cable from old to new. But this makes only senses when the same cable is used (same rack). |
Beta Was this translation helpful? Give feedback.
-
In additional this could be interesting for us. We dont have to replace thousand switches, but replacements are a common task in our operations team. |
Beta Was this translation helpful? Give feedback.
-
I have a use case where I map old to new switch ports when migrating access switches.
I need this, since I'm usually not migrating ports 1:1 - eg. 4 switches being replaced by 2 due to reduced usage, and ports are configured explicitly with differing vlans, and I also want to remove patches from unused ports.
To support this, in my current homegrown system I can reference a planned replacement switch from active switches, and reference a mapped/replacement port on the planned switch from each of the ports on the active switches.
I've added constraints etc. to ensure that only ports on the planned switch can be referenced from a to-be-decommissioned switch, and that its ports can only be referenced once.
I also use this when there are several standalone switches in a single cabinet, which will be replaced with a new stack of switches.
These references allows me to do several things:
I'm not sure this would be a feature worth the effort to implement into netbox, as I guess it is quite bespoke, and statically configured vlans are slowly going away with IBNS/similar - but possibly it could be supported with custom fields, where a new type of custom field is introduced - a reference to an entry in table?
It would probably be complex to support also, but beyond mapping devices to devices and interfaces to interfaces, there could be loads of other stuff you'd want to map. It would probably have limited support for constraints, but simple stuff like controlling if the referenced value must be unique.
I could do something with plain custom fields, but that would leave me without database integrity.
Should I do a feature request for:
Or just accept the status quo and live without database integrity?
(as a side note - we are replacing 1000s of switches, which is why we have put this much effort into these guardrails/training wheels for our operations)
Beta Was this translation helpful? Give feedback.
All reactions