You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.
I'm not sure if notes mean what i think, but I implemented the synchronization of VM annotations to NetBox.
I can open a pull request with my changes, they are not that big.
The Template already supports a comment parameter. So i added this line in get_objects() to set it: comments=getattr(obj.config, "annotation", None).
The vCenter api documentation has annotations marked as "Need not be set" that's why I used getattr() to prevent an AttributeError from happening.
According to the vCenter api documentation annotations can also be found under vm.summary.config.annotations
I don't know what the difference between the two is and if one is preferable to the other.
Line breaks in annotations are marked with \n but to display them properly in NetBox they have to use \r\n\r.
To fix this I changed a line in netbox.py: "comments": comments.replace("\n", "\r\n\r") if comments else None
Is your feature request related to a problem? Please describe.
We can also add sync between notes and tags fields from vCenter to NetBox
The text was updated successfully, but these errors were encountered: