netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
15.77k stars 2.54k forks source link

Device-Type update towards devices #2036

Closed deku-m closed 6 years ago

deku-m commented 6 years ago

Issue type

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

Environment

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.

bdlamprecht commented 6 years ago

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.

jeremystretch commented 6 years ago

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.