-
Notifications
You must be signed in to change notification settings - Fork 43
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
Fix Bootstrap for DLM 3.0 and Correct Docs #586
Conversation
SoftwareLCM = apps.get_model("nautobot_device_lifecycle_mgmt", "SoftwareLCM") | ||
signal_to_model_mapping["software"] = SoftwareLCM | ||
except LookupError as err: | ||
print(f"Unable to find SoftwareLCM model from Device Lifecycle Management App. {err}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my mind we should either.
- Rely on pyproject.toml to ensure we side step this issue by pinning / setting the proper versions of dependencies
- Support both new and old versions
The print to me would not be easily seen, and as far as I can tell, not let the customer know the issue is exactly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@itdependsnetworks The problem is this isn't a direct dependency. The Bootstrap integration supports both Golden Config and Device Lifecycle Management Apps. The problem is that with DLM's change to get rid of SoftwareLCM and SoftwareImageLCM we need to account for that with this integration as it was blowing up my testing of the DLM update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small edit to docs but otherwise looks good to me.
…f SoftwareLCM/SoftwareImageLCM in DLM 3.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR closes #585 and also updates the documentation on the Bootstrap integration to clarify installation and settings.