This PR implements logic to create a physical device with NetBox.
To accomplish this, a rewrite of the configuration module was necessary to allow collection of all relevant parameters either via config file or collector module so that this information can be translated cleanly.
It will probably be necessary in a future PR to update the configuration module again to list all VM parameters as well.
TODO:
[x] Rewrite config parsing logic to build config data correctly
[x] Add payload creation for Device struct
[x] Add request logic in api_client module
[x] Distinguish between create and update request
[x] Implement parameter retrieval for special ID parameters
[x] site_id
[ ] primary ipv4 address
[x] Search for existance
[ ] Link existing to device ( -> #69 )
[ ] primary ipv6 address
[x] Search for existance
[ ] Link existing to device ( -> #69 )
[ ] If IP Adress not found -> Create new. ( -> #69 )
[x] platform_id
Tick the applicable box:
[x] Add new feature
[ ] Security changes
[ ] Tests
[ ] Documentation changed
[ ] General Maintenance
Links
Fixes: #56
Tracks: #60
[x] DONE
Documentation
Dpcumentation provided through extensive docstrings
What does this PR change?
This PR implements logic to create a physical device with NetBox.
To accomplish this, a rewrite of the
configuration module
was necessary to allow collection of all relevant parameters either via config file orcollector
module so that this information can be translated cleanly.It will probably be necessary in a future PR to update the
configuration
module again to list all VM parameters as well.TODO:
api_client
moduleTick the applicable box:
[x] Add new feature
[ ] Security changes
[ ] Tests
[ ] Documentation changed
[ ] General Maintenance
Links
Fixes: #56 Tracks: #60
Documentation
Dpcumentation provided through extensive docstrings
[x] DONE