Device-Type update towards devices #1680

Closed
opened 2025-12-29 16:34:21 +01:00 by adam · 2 comments
Owner

Originally created by @deku-m on GitHub (Apr 18, 2018).

Issue type

[X ] Feature request
[ ] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.2
  • NetBox version: 2.3.2

Description

When updating the device-type the devices that use the device-type are not updated. Is this possible to implement when changing a value in the devicetype. As we use it mainly as "templates" for different devices. When changing one value it doesnt push the update towards the devices. Could be usefull when you have multiple devices with the same template and when adding interfaces in the device-type instead at the devices itself. You will then update all devices.

Originally created by @deku-m on GitHub (Apr 18, 2018). <!-- Before opening a new issue, please search through the existing issues to see if your topic has already been addressed. Note that you may need to remove the "is:open" filter from the search bar to include closed issues. Check the appropriate type for your issue below by placing an x between the brackets. For assistance with installation issues, or for any other issues other than those listed below, please raise your topic for discussion on our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please note that issues which do not fall under any of the below categories will be closed. Due to an excessive backlog of feature requests, we are not currently accepting any proposals which extend NetBox's feature scope. Do not prepend any sort of tag to your issue's title. An administrator will review your issue and assign labels as appropriate. ---> ### Issue type [X ] Feature request <!-- An enhancement of existing functionality --> [ ] Bug report <!-- Unexpected or erroneous behavior --> [ ] Documentation <!-- A modification to the documentation --> <!-- Please describe the environment in which you are running NetBox. (Be sure to verify that you are running the latest stable release of NetBox before submitting a bug report.) If you are submitting a bug report and have made any changes to the code base, please first validate that your bug can be recreated while running an official release. --> ### Environment * Python version: 3.5.2<!-- Example: 3.5.4 --> * NetBox version: 2.3.2<!-- Example: 2.1.3 --> <!-- BUG REPORTS must include: * A list of the steps needed for someone else to reproduce the bug * A description of the expected and observed behavior * Any relevant error messages (screenshots may also help) FEATURE REQUESTS must include: * A detailed description of the proposed functionality * A use case for the new feature * A rough description of any necessary changes to the database schema * Any relevant third-party libraries which would be needed --> ### Description When updating the device-type the devices that use the device-type are not updated. Is this possible to implement when changing a value in the devicetype. As we use it mainly as "templates" for different devices. When changing one value it doesnt push the update towards the devices. Could be usefull when you have multiple devices with the same template and when adding interfaces in the device-type instead at the devices itself. You will then update all devices.
adam closed this issue 2025-12-29 16:34:21 +01:00
Author
Owner

@bdlamprecht commented on GitHub (Apr 18, 2018):

If you look at the documentation here in the blue "Note" section, you'll see that this is not possible once the device has been created.

I think I asked for the same thing or some type of "template hierarchy" this past summer (2017), but there were more pressing needs that needed to be addressed so I never pushed the issue.

@bdlamprecht commented on GitHub (Apr 18, 2018): If you look at the documentation [here](http://netbox.readthedocs.io/en/latest/data-model/dcim/#component-templates) in the blue "Note" section, you'll see that this is not possible once the `device` has been created. I think I asked for the same thing or some type of "template hierarchy" this past summer (2017), but there were more pressing needs that needed to be addressed so I never pushed the issue.
Author
Owner

@jeremystretch commented on GitHub (Apr 19, 2018):

When updating the device-type the devices that use the device-type are not updated.

This is not practical to implement as it presents huge potential for ambiguity. For example, when you delete an interface named eth0 from a DeviceType, should NetBox also delete it from all instances of that DeviceType? Or should it silently ignore those? Or should it throw an error if those interfaces are in use? Different use cases demand different actions.

You can add components to many devices at once by selecting the desired devices and clicking the "add components" button at the bottom of the list.

@jeremystretch commented on GitHub (Apr 19, 2018): > When updating the device-type the devices that use the device-type are not updated. This is not practical to implement as it presents huge potential for ambiguity. For example, when you delete an interface named `eth0` from a DeviceType, should NetBox also delete it from all instances of that DeviceType? Or should it silently ignore those? Or should it throw an error if those interfaces are in use? Different use cases demand different actions. You can add components to many devices at once by selecting the desired devices and clicking the "add components" button at the bottom of the list.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1680