Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cable metod put. #5

Closed
VictorPavlushin opened this issue Feb 22, 2019 · 5 comments
Closed

Update cable metod put. #5

VictorPavlushin opened this issue Feb 22, 2019 · 5 comments

Comments

@VictorPavlushin
Copy link

Environment

  • Python version: 3.6.6
  • NetBox version: 2.5.5
  1. Create cable, Length length_unit do not fill.
  2. If use class NetboxMapper in netboxapi and change termination.
  3. Сalling the put method, returns an error that length_unit cannot be empty. Even if you first remove the attributes from the object. They are added to the to_dict functions class NetboxMapper. Here is an example of what is being transmitted in json:

{'id': 612, 'termination_a_type': 'dcim.interface', 'termination_a_id': 10488, 'termination_b_type': 'dcim.interface', 'termination_b_id': 8491, 'type': 3040, 'status': True, 'label': '', 'color': '', 'length': None, 'length_unit': None, 'termination_a': 10488, 'termination_b': 8492}

@aruhier
Copy link
Contributor

aruhier commented Mar 2, 2019

Thanks a lot for your bug report.
It seems to be more a bug on Netbox than it is on this library. I'll look at their code.

@VictorPavlushin
Copy link
Author

There they still have a problem :(
https://groups.google.com/d/msg/netbox-discuss/nmjePUNCJo8/hgFZRS24BAAJ

@aruhier
Copy link
Contributor

aruhier commented Mar 5, 2019

Oh but I'm sure it's an issue on the netbox side, as my lib is sending the exact response that netbox sent before, but I have to look at their code to fix it ;)

@aruhier
Copy link
Contributor

aruhier commented Mar 5, 2019

netbox-community/netbox#2967 should fix it

@aruhier
Copy link
Contributor

aruhier commented Mar 5, 2019

I'm closing the issue as it's not a bug on this lib, but on Netbox

@aruhier aruhier closed this as completed Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants