synackray / vcenter-netbox-sync

Sync objects between vCenter and Netbox via Python3
Apache License 2.0
109 stars 28 forks source link

Invalid main ip #124

Open SerhiiZahuba opened 4 years ago

SerhiiZahuba commented 4 years ago

Environment

image

I have many servers with a docker (the docker has its own network), the host has a standard ip, when synchronizing, the tool puts the primary ip from the docker and not the main one.

Steps to Reproduce

1. 2. 3.

Expected Behavior

Observed Behavior

Haeki commented 4 years ago

At the moment the script simply takes the first ip it finds and sets it as primary. I added a feature request so that this ip could manually be changed without being overwritten: Make updating primary ip optional #102. Additionally there is a feature request to ignore docker networks: Don't sync ip-address of virtual networks (docker/k8s and so on) #112

If you want to disable the Script from overwriting a primary ip so that you can change them manually. This are the changes I made to accomplish this: Make updating primary ip optional