vcenter-netbox-sync icon indicating copy to clipboard operation
vcenter-netbox-sync copied to clipboard

Invalid main ip

Open SerhiiZahuba opened this issue 4 years ago • 1 comments

Environment

  • Python version: Example: 3.6.8
  • NetBox version: Example: 2.8.6
  • vCenter version: Example: 6.5.0
  • vCenter NetBox Sync version: last

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

Expected Behavior

Observed Behavior

SerhiiZahuba avatar Jun 24 '20 09:06 SerhiiZahuba

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

Haeki avatar Jun 25 '20 15:06 Haeki