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

Adds controller module. #408

Merged
merged 23 commits into from
Aug 14, 2024
Merged

Adds controller module. #408

merged 23 commits into from
Aug 14, 2024

Conversation

jvanderaa
Copy link
Contributor

Adds new model for controllers.

jmcgill298
jmcgill298 previously approved these changes Jul 18, 2024
@joewesch
Copy link
Contributor

For future, I don't think you really need to include updates to the docs for every PR as it adds a lot of static to the changes. I think we should only do that during release PRs.

plugins/modules/controller.py Outdated Show resolved Hide resolved
plugins/modules/controller.py Outdated Show resolved Hide resolved
plugins/modules/controller.py Outdated Show resolved Hide resolved
tests/integration/targets/latest/tasks/controllers.yml Outdated Show resolved Hide resolved
@jvanderaa
Copy link
Contributor Author

Fixes #326

@joewesch joewesch linked an issue Jul 18, 2024 that may be closed by this pull request
Copy link
Contributor

@joewesch joewesch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for letting me know you copied the device module. It made it much easier to find the copy pasta.

plugins/modules/controller.py Outdated Show resolved Hide resolved
plugins/modules/controller.py Outdated Show resolved Hide resolved
plugins/modules/controller.py Outdated Show resolved Hide resolved
jvanderaa and others added 12 commits July 24, 2024 20:26
Co-authored-by: Joe Wesch <10467633+joewesch@users.noreply.github.com>
Co-authored-by: Joe Wesch <10467633+joewesch@users.noreply.github.com>
Co-authored-by: Joe Wesch <10467633+joewesch@users.noreply.github.com>
tests/integration/nautobot-populate.py Outdated Show resolved Hide resolved
Comment on lines +2 to +4
- debug:
msg: "{{ nautobot_version }}"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- debug:
msg: "{{ nautobot_version }}"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is alright to leave the debug message in here to print out for CI.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to start a copy/pasta pattern for future modules. Can you add it to the main.yml instead and update the message to something more human readable?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want, we could also move all of the existing conditional blocks out of the individual test files and into main.yml. It would then make sense to have a debug message there like "Running 2.2+ tests" and "Skipping 2.2+ tests because version is {{nautobot_version}}".

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am approving this PR for now, but I'll want to come back and revisit this later if we need to continue to need to have tests conditionally run based on the version.

tests/integration/targets/latest/tasks/controller.yml Outdated Show resolved Hide resolved
jvanderaa and others added 4 commits August 9, 2024 08:02
Co-authored-by: Joe Wesch <10467633+joewesch@users.noreply.github.com>
Co-authored-by: Joe Wesch <10467633+joewesch@users.noreply.github.com>
@joewesch joewesch merged commit 0133c7c into develop Aug 14, 2024
8 checks passed
@joewesch joewesch deleted the new_model_controllers branch December 20, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support 2.2 New Model: Controllers
3 participants