Interface "reset to default" function
NetBox version
v3.3.4
Feature type
New functionality
Proposed functionality
Add a function/method to Interface type objects that can reset its state to a pre-defined default (i.e. null). The default values for these attributes could be overridden by configuring the interface attribute at the device-type level.
Access to the function could be through the Interface pane, or as a mini-button via the parent device's pane. Should also be accessible via API object manipulation.
Workflow:
- Interface object has a method called "reset" or "default".
- Running the method sets all attributes, except for name, module, device, type, speed and duplex, to their Null default value (if applicable). This should include custom_fields.
- If specific interface settings are defined in the parent device's device-type template, those interface attribute settings should be the default instead.
Use case
Often times, deprovisioning a port on a switch requires removing several pieces of configuration. Many vendors offer a simple command to reset an interface to its default state. A similar function for Netbox would make day-to-day port provisioning tasks simpler.
Database changes
From my understanding of how Netbox works, I don't think any database changes would be required.
External dependencies
From my understanding of how Netbox works, I don't think any external dependencies would be required.