Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ports created in device type not reflected in devices #464

Closed
harsh-kotak opened this issue Aug 12, 2016 · 7 comments
Closed

Ports created in device type not reflected in devices #464

harsh-kotak opened this issue Aug 12, 2016 · 7 comments

Comments

@harsh-kotak
Copy link

I created a new device type and added few devices of that type. Then I went to the device type and added console and management port but it did not reflect on the devices I already created. It does reflect on devices I create now. Bug? I would like it to be reflected on all devices created before and after.

@jeremystretch
Copy link
Member

This behavior is intentional to avoid unintended consequences. From the docs:

Note that assignment of components from templates occurs only at the time of device creation: If you modify the templates of a device type, it will not affect devices which have already been created. However, you always have the option of adding, modifying, or deleting components of existing devices individually.

@harsh-kotak
Copy link
Author

harsh-kotak commented Aug 12, 2016

Can we have an option to select if we want to reflect the template on all the devices or only for future devices. This will save a lot of effort for people like me who have already created 150 devices.

@LBegnaud
Copy link

you can bulk-add interfaces from the devices listing

select multiple devices, click add interface

@harsh-kotak
Copy link
Author

harsh-kotak commented Aug 12, 2016

Thank you. This helps in adding interfaces (which sometimes work and sometimes doesn't) but not console ports.

@jeremystretch
Copy link
Member

To be clear, device types are supposed to be defined once and rarely (if ever) modified. A device type represents a make and model of physical device, which never changes. For instance, every Juniper EX4300-48T ever made has the exact same console port, power supplies, and interfaces. There should be no need to ever modify these unless you made a mistake when originally creating them (but I'm hoping to mitigate that in the near future with #451).

@padavrexi
Copy link

Just a quick heads up: at least on v1.6.2, when creating a new device type, the buttons to add interfaces/console ports/power ports/device bays are missing. In order to reinstate them, I had to go to admin site, add a dummy template and then go back. Same thing works fine on a v1.1.0 installation (not sure about interims).

@jeremystretch
Copy link
Member

See #591 for above. Will be fixed shortly.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants