netbox-ssot
netbox-ssot copied to clipboard
[Bug] VMware/ESX Vlans are not synchronized
Hi there!
It seems that Vlans are not synchronized (not tagged with netbox-ssot), only the DefaultVlanGroup are created/updated.
nicolas@MacBook-Pro-de-Nicolas:~/go/src/github.com/n-rodriguez/netbox-ssot$ grep 'Vlan ' foo.log
2025/02/27 20:45:06 rest.go:66 DEBUG (inventory): Getting all objects.Vlan from Netbox
2025/02/27 20:45:06 rest.go:69 DEBUG (inventory): Getting objects.Vlan with limit=250 and offset=0
2025/02/27 20:45:06 add_items.go:906 DEBUG (inventory): Vlan FooDefaultVlanGroup already exists in Netbox and is up to date...
2025/02/27 20:45:06 add_items.go:906 DEBUG (inventory): Vlan FooDefaultVlanGroup already exists in Netbox and is up to date...
2025/02/27 20:45:06 add_items.go:906 DEBUG (inventory): Vlan BarDefaultVlanGroup already exists in Netbox and is up to date...
2025/02/27 20:45:06 add_items.go:906 DEBUG (inventory): Vlan BarDefaultVlanGroup already exists in Netbox and is up to date...
Thank you!
Hello on which source are you trying the following log? Vlans are collected and synced in many places. I would need more info here.
@bl4ko Hi there! What do you need to know?
How to reproduce vlans not being synchronized?
Good question ^^ Actually vlans were first synchronized with netbox-sync (they have the netbox-sync tags) and I was expecting for the tag to change (like other objects). So I would say :
- synchronize with
netbox-sync - synchronize with
netbox-ssot
So if I understand correctly, If you filter vlans with netbox-ssot tag, there are no matches in netbox (after netbox-ssot sync)?
So if I understand correctly, If you filter vlans with netbox-ssot tag, there are no matches in netbox (after netbox-ssot sync)?
right
I found an other issue with Vlans : vlans are stored in vlanIDMap with vlanID as key. But I think it should also take nic in consideration.
Right now it picks and creates the first it founds.
On the top of that it also assigns a default vlan group which prevents creation of different vlan with the same ID on the same site.
@bl4ko hi there! any news?
Hi, I've just been very busy lately... vlans are stored by their group and their vlan id see. Because I think in netbox if you add to vlans with the same vlanID they must be scoped to either different vlan group or different site. Scoping only to interface won't work...
they must be scoped to either different vlan group or different site
Right. Right now it's not possible because vlans are automatically scoped to vlan group.
Scoping only to interface won't work...
Right, you can't.