Skip to content

pillar: netbox: create "connected_devices" function#62666

Merged
Ch3LL merged 9 commits into
saltstack:masterfrom
ITJamie:netbox-pillar-related-devices
Sep 28, 2022
Merged

pillar: netbox: create "connected_devices" function#62666
Ch3LL merged 9 commits into
saltstack:masterfrom
ITJamie:netbox-pillar-related-devices

Conversation

@ITJamie

@ITJamie ITJamie commented Sep 12, 2022

Copy link
Copy Markdown
Contributor

What does this PR do?

add a dictionary of connected devices to netbox ext_pillar

What issues does this PR fix or reference?

Fixes:
#62761

Previous Behavior

New Behavior

add a dictionary of connected devices to netbox ext_pillar

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@ITJamie
ITJamie requested a review from a team as a code owner September 12, 2022 20:39
@ITJamie
ITJamie requested review from garethgreenaway and removed request for a team September 12, 2022 20:39
@ITJamie ITJamie changed the title netbox: create "connected_devices" function pillar: netbox: create "connected_devices" function Sep 12, 2022

@Ch3LL Ch3LL left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This will require a changelog and test coverage.

EDIT: You can add tests here: tests/pytests/unit/pillar/test_netbox.py

@garethgreenaway garethgreenaway added needs-testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases needs-changelog labels Sep 21, 2022
@ITJamie

ITJamie commented Sep 23, 2022

Copy link
Copy Markdown
Contributor Author

working on tests now. I will be updating most of the test data examples since they are from an older netbox api version.
see: #62669

@ITJamie
ITJamie requested review from Ch3LL and removed request for garethgreenaway September 27, 2022 16:28
@Ch3LL
Ch3LL merged commit 68bc569 into saltstack:master Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-changelog needs-testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants