Check if thanix_client and NetBox version are compatible #78
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR change?
Given that we have to run
thanix_client
with two versions - one for NetBoxv3.6.9
and one forv4.x.x
we need to check, if the current version of NetBox is compatible with the used API client.For this we have adjusted
Thanix
to also generate a custombuild.rs
forthanix_client
together with a newversion.rs
module which contains the current version of the crate.(The-Nazara-Project/Thanix@35ffbe1)
The opening API request from Nazara's end is then on
$URL/api/status
. On this response, a simple check is run to determine, whether theVERSION
constant fromthanix_client
and NetBox are compatible.It is compatible, if:
thanix_client v1.x
is used with NetBoxv3.6.x
thanix_client v2.x
is used with NetBoxv4.x.x
For this
Tick the applicable box:
Links
Fixes: n/A
Documentation