Giter Club home page Giter Club logo

go-netbox's People

Contributors

abhide avatar awlx avatar chapsuk avatar davcamer avatar fbreckle avatar haipersuccor02 avatar holmesb avatar ikke avatar jake2184 avatar joeyberkovitz avatar keshy7 avatar kobayashi avatar maltej avatar mdlayher avatar michaelxniu avatar mifrost avatar mraerino avatar qaoru avatar smutel avatar tobikris avatar twink0r avatar

Stargazers

 avatar

Watchers

 avatar

go-netbox's Issues

API Client is not able to unset IPAM IP-Address Role

Hi!

I'm trying to unset the role of WritableIPAddress, but it seems not to work.

Snippet (part of a Terraform provider)

if d.HasChange("role") {
  if role := d.Get("role"); role.(string) == "" {
	  data.Role = " "
  } else {
	  data.Role = role.(string)
  }
}

This snippet above ends in map[role:[ is not a valid choice.]] but it should be null because the field is omitempty tagged.

Add support for multiple Tags

Hi,

I want to implement the tags filter in e-breuninger/netbox. But right now it supports only one tag per request. But most Netbox objects needs to filtered by multiple tags such as environment and service.

For example (taken from netbox/client/virtualization/virtualization_virtual_machines_list_parameters.go)

if err := r.SetQueryParam("tag", qTag); err != nil {
  return err
}

u_height should not be int

Hi,

As of https://github.com/netbox-community/netbox/pull/9571/files , the u_height field in netbox is no longer an integer. As such, when creating or reading device types with this library (and notably the terraform provider), we receive

Error: json: cannot unmarshal number 1.0 into Go struct field DeviceType.u_height of type int64

Hopefully this should be a minor change here https://github.com/fbreckle/go-netbox/blob/master/netbox/models/device_type.go#L117 , unless anyone is aware of anywhere else this needs changing?

I'll hopefully get a PR written and tested in the next few days

Mike

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.