-
Notifications
You must be signed in to change notification settings - Fork 44
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
Exclude tag requirements when loading DeviceType and InterfaceTemplate #671
Conversation
I'm not entirely sure this is a bug or an enhancement. This is changing the default behavior which makes me inclined to say that this should most likely be an optional setting for users. Can you refactor this to work from a setting in the PLUGINS_CONFIG for the App? The default behavior should be to use the Tag to filter the loaded DeviceTypes and InterfaceTemplates and only load all if the setting is True. |
I will work on refactoring as requested. I still believe it to be incorrect to filter DeviceType at all because it's something that will never be specific to ACI. The purpose behind the filtering for tags as it was explained to me is for integrations that are not ACI to not step on each other. It is highly unlikely that you will have DeviceTypes that are just created for ACI and no other purpose. |
@kingfetty without a filter/data ownership tag, the ACI SSOT will be "data owner" of all DeviceTypes. That means that ACI SSOT will have to declare every DeviceType in Nautobot. For example, if you declare a DeviceType manually, ACI SSOT will delete it during the next sync. |
Thank you for the clarification here, and a very good observation. I will withdraw this and kill the issue. I'll have to resort to manually tagging the DeviceTypes in my Nautobot Instance to get around this issue then. |
Closes: #669
What's Changed
Remove tag filter when loading DeviceType and InterfaceTemplate into diffsync model.
To Do