-
Notifications
You must be signed in to change notification settings - Fork 28
Add Support for NetBox API version 2.9 #132
base: develop
Are you sure you want to change the base?
Conversation
vm.config.annotation is synced as comment to netbox
Tags use a description field instead of a comments field. This Field is also limited to 200 characters
same log statement already present at the start of the loop
Sometimes vCenter returns asset tags with a leading whitespace. Instead of adding a second version with a whitespace to the banned tags list we use the strip() method to remove the whitespace bevore checking
Removed duplicate Logging
Strip whitespaces when checking if asset tag is banned
Tag descriptions
Adding comments to vm sync
…ces/vms * after NetBox changed the API 2.9 this assignment process was broken
Thank you. For me it's work. Netbox (v2.9.4). |
Great. I just started a complete reimplementation of this whole project. Hope to finish it next week. Would also need some testers 😀 |
Also using it here, thank you. |
We are using it and have a non production environment where I would be more then happy yo help test the reimplementation |
Thanks for the update I haven't noticed any problems so far. |
I'm also using it here, thank you Ricardo! |
Sign me up for testing too |
Thanks! This almost works for us. There seems to be an issue where it the check for the the type of vCenter platform exists or not. When the initial check for it occurs Netbox responds that it does not exist. However, when vcenter-netbox-sync attempts to create the platform, Netbox now responds that it does exist. This ultimately prevents the vCenter appliance from being created.
|
It seems the platform name has a white space at the end. And NetBox probably strips the white space and finds a platform with exactly that name and refuses the recreation of the same name. The mentioned rewrite is coming along well and I hope to have a basic fully functionality version by the end of next week. |
@josephcouture I had the same problem, see #127 |
I went down a rabbit hole and finally can see the light at the end of the tunnel again. This took way longer then expected (as usual). Here you go: https://github.com/bb-Ricardo/netbox-sync please test as much as you can: Debug logs are very welcome. |
This adds support for NetBox 2.9 API changes. It is not backwards compatible with older NetBox API Versions.
Also adds some minor code improvements.
Refs: #129