Given that we have to run thanix_client with two versions - one for NetBox v3.6.9 and one for v4.x.x we need to check, if the current version of NetBox is compatible with the used API client.
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 the VERSION constant from thanix_client and NetBox are compatible.
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. (https://github.com/The-Nazara-Project/Thanix/commit/35ffbe1da6c187ddd891125f7e9e5325f84e40db)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:
[x] Add new feature
[ ] Security changes
[ ] Tests
[ ] Documentation changed
[ ] General Maintenance
Links
Fixes: n/A
Documentation
Code documentation present
[x] DONE