bb-Ricardo / netbox-sync

Sync objects from VMware or redfish sources to NetBox
MIT License
286 stars 65 forks source link

[FR] Import DVS switches and cables #318

Open patschi opened 1 year ago

patschi commented 1 year ago

It would be cool to import DVS switches into netbox like physical switches, including each individual port. Each port is assigned to a VM, so a specific "cable" between VDS port to a VM can be created as well.

bb-Ricardo commented 1 year ago

Hi,

this sounds interesting. Not sure what the extent of this implementation would look like.

patschi commented 1 year ago

I'd say:

  1. Query all VDS/VSSes and create them in netbox accordingly. The interfaces size can be set to the amount of VMs attached to it.
  2. Attach all vNICs for a VM to the VSS. There can only be one cable for vNIC<->VSS.
  3. Attach all vNICs for a VM to the VDS using its specific port id. The port id is a unique match anyway.