Skip to content

Netbox-Sync is removing IPs from interfaces that it does not find in VMware #453

Open

Description

@3bruno

Hi Ricardo..

After the last update, the netbox-sync script is removing IPs from interfaces that it does not find in VMware, but there are some IPs that exist and I enter them manually and the script is still removing them.

Is it possible to disable it so that it does not remove IPs that are not synchronized by the script?

Activity

  1. bb-Ricardo commented on May 9, 2025

    @bb-Ricardo
    Owner

    Hi,

    yes there were some changes regarding the detection and usage of IP addresses. Is it possible that this issue occurs with VMs that don't have VMware tools installed or running an old version of VMware tools?

  2. 3bruno commented on May 9, 2025

    @3bruno
    Author

    Hi Ricardo.

    Yes. This VMs have old version of Vmtools or are not installed.
    It's possible to not remove the IP address inputed manually or it's a bug/normally behavior?

  3. bb-Ricardo commented on May 9, 2025

    @bb-Ricardo
    Owner

    It should leave the addresses if outdated vmware tools are discovered, I think. Can you run the script with -l DEBUG2 and poat the output for the part of one VM where this happens? Thank you

  4. 3bruno commented on May 11, 2025

    @3bruno
    Author

    Yes. I am out of work and do this ASAP.

  5. added
    awaiting reply
    on May 27, 2025
  6. semx commented on Sep 9, 2026

    @semx
    Collaborator

    Two updates on development: #525 adds preserve_primary_ips, which keeps a device's or VM's primary IPs even when the source stops reporting them, and #550 keeps existing IPs on interfaces the check_redfish source reports no addresses for. A general option for the VMware source to leave manually added, unreported IPs alone is a policy choice (it also affects pruning), so I'll leave that decision to @bb-Ricardo; the same question came up in #537 and #498.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting reply

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions