Go library to interact with NetBox IPAM and DCIM service.
The version for Netbox and go-netbox will the same except for the last digit.
Example:
- go-netbox v2.11.x is working with Netbox v2.11
- go-netbox v3.4.x is working with Netbox v3.4
- go-netbox v4.0.x is working with Netbox v4.0
As an example of usage of this library, you can check this project
- To contribute to this project, please follow the conventional commits rules.
- Most of the code of this project will be generated using the openapi spec of Netbox and the openapi-generator-cli program.
- You can change the behavior of the generated library by updating python script
utils/fix-spec.py
or by pushing patchs in thepatches
folder. - The best is to see if the bug is due to a wrong openapi definition and to report this bug to the Netbox project.
- If the bug is due to the
openapi-generator-cli
program the best is to create a bug here openapi-generator-cli. - If the bug is due to the
openapi-generator
program the best is to create a bug here openapi-generator.
- docker
- netbox-docker project installed somewhere
$ mkdir -p ~/go/src/github.com/smutel
$ cd ~/go/src/github.com/smutel
$ git clone git@github.com:smutel/go-netbox.git
$ cd ~/go/src/github.com/smutel/go-netbox/utils
$ export GITHUB_WORKSPACE=~/go/src
$ ./netbox_generate_client