-
Notifications
You must be signed in to change notification settings - Fork 264
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
null status on device interface created through template #2419
Comments
Thanks for the report! A "simple" fix might be to just set status Active for all new interfaces created from templates; but I wonder if a more desirable solution might be to allow individual interface templates to actually specify their default creation status. |
@glennmatthews Device type/template usually contains only physical interfaces because virtual interfaces vary device by device. With physical interfaces I doubt that any customer will have same sort of ports active from implementation. So as per my opinion the solution: set status Active for all new interfaces created from templates is great. |
Thanks for the fast reply! The extra status on device templates is not much usable for us, but others might like it. I'll leave that part completely on you :) |
Good points, thank you both! I suspect that rather than a new DB migration, we'll want to add a management command similar to |
This may be something that we want configurable in settings. I know of an instance of Nautobot that uses its own statuses and has removed built-in statuses. |
Environment
#1753 introduced status field for interfaces. We have interface templates on some device types. If we create new device (tested via UI and csv import) with type containing interface template, the newly created device has interface without status set.
Creating device interface directly without status is not possible, the field is required.
Steps to Reproduce
Expected Behavior
Newly created interface on the new device has status filled
Observed Behavior
Newly created interface on the new device has empty status
TODO
The text was updated successfully, but these errors were encountered: