Skip to content

smutel/go-netbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-netbox

Lisence Conventional Commits Build Status

Go library to interact with NetBox IPAM and DCIM service.

Compatibility with Netbox

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

Using the client

As an example of usage of this library, you can check this project

How to contribute to 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 the patches 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.

How to test your work locally

Requirements

Installing the go-netbox

$ mkdir -p ~/go/src/github.com/smutel
$ cd ~/go/src/github.com/smutel
$ git clone git@github.com:smutel/go-netbox.git

Regenerating the library

$ cd ~/go/src/github.com/smutel/go-netbox/utils
$ export GITHUB_WORKSPACE=~/go/src
$ ./netbox_generate_client

About

Go library to interact with NetBox IPAM and DCIM service.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •