-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Two more options added to the netbox Pillar, and use salt.utils.http #48910
Conversation
No issues on my end, this looks great. A good learning example for me about how I can use features built into salt to remove dependencies and make things simpler! What do you think about nesting the different NetBox API endpoints into the
I've since made some tweaks internally since we're trying to use netbox data to drive configuration templates and I needed this data available, so I have set up queries to interfaces, addresses, connections, etc. I was planning on adding this to the module myself soon(ish), but I see no reason for that to impact this PR. |
That would make sense to me, yes. |
I think that's a great idea, but I'd nest them in the App endpoint as well. So instead of the flatter structure you proposed, I propose:
This will make sure there's no conflicts if/when Netbox has 2 apps with identical API endpoints. |
I think these proposals make sense to me, I would leave it though for another day to discuss this further. Wondering if @zachmoody has any thoughts on this? |
TIL that I'd definitely nest under app though, ran into the same conundrum with earlier versions of pynetbox and in the end had to acquiesce to a two-tiered hierarchy. |
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.
Nice
What does this PR do?
I am applying some small (or I think so) changes to the
netbox
external Pillar:salt.utils.http
instead ofrequests
to avoid external dependency.site_details
andsite_prefixes
.versionadded
tag.@ksofa2 @ngrundler I hope you don't mind my changes, please let me know if there's anything you disagree / should be changed etc. Additionally, it would be great if you could test this out and confirm it doesn't change anything in your environment. Thanks!