Don't set tag if object already exists #149
cliffalbert
started this conversation in
Ideas
Replies: 1 comment
-
Hi, In short: yes, this would be quite difficult, would break the sync. Long version:
Also check tis file: https://github.com/bb-Ricardo/netbox-sync/blob/main/module/netbox/object_classes.py Here are the object classes defined. And only classes with Currently this should be:
Does this help? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It looks like netbox-sync also set the netbox-synced tag on objects that already exists.
I am worried that due to this behaviour if you would do a purge OR the referenced object does no longer exist in vcenter the object will be completely removed. This would be a problem primarily for sites where we would also hold other stuff.
I already experienced this when testing netbox-sync on some IP addresses that where already defined in netbox. After the first import they where linked to a VM, but after the first test (with only 1 cluster) I did a purge just for testing purposes and it also removed those IP addresses.
It would be nice to make this optional. A configuration statement like "skip_tag_existing" would this be hard to implement ?
Beta Was this translation helpful? Give feedback.
All reactions