Skip to content

Conversation

@cardoe
Copy link
Contributor

@cardoe cardoe commented Apr 24, 2025

Use the pynautobot API calls instead of making manual API calls in the neutron mechanism. While typing is a bit awkward and needs some casts currently, it will be better for long term maintainability to use the API library than writing our own calls everywhere. This can be seen by the ability to consistently catch errors and return them back to neutron which should eliminate a few 500 errors that users see without any context.

Use the pynautobot API calls instead of making manual API calls in the
neutron mechanism. While typing is a bit awkward and needs some casts
currently, it will be better for long term maintainability to use the
API library than writing our own calls everywhere. This can be seen by
the ability to consistently catch errors and return them back to
neutron which should eliminate a few 500 errors that users see without
any context.
@cardoe
Copy link
Contributor Author

cardoe commented Apr 29, 2025

A bunch of the cast() can go away with nautobot/pynautobot#308

@cardoe cardoe enabled auto-merge April 29, 2025 21:23
@cardoe cardoe added this pull request to the merge queue Apr 30, 2025
Merged via the queue into main with commit 5f24b9e Apr 30, 2025
29 checks passed
@cardoe cardoe deleted the use-pynautobot branch April 30, 2025 06:30
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.

3 participants