nautobot / nautobot-app-device-onboarding

Device Onboarding Plugin for Nautobot
https://docs.nautobot.com/projects/device-onboarding/en/latest/
Other
43 stars 28 forks source link

Syncing VLANs not working when VLAN has multiple locations set #230

Open cmong-nextech opened 1 month ago

cmong-nextech commented 1 month ago

Expected Behavior

Vlans will detect that they already exist in a given location and the process will move forward.

Observed Behavior

Received the error { "exc_message": [ "Multiple Location objects returned. Please refer to locations." ], "exc_module": "nautobot.dcim.models.locations", "exc_type": "Location.MultipleObjectsReturned" }

Steps to Reproduce

  1. Create a vlan
  2. Assign this vlan to multiple locations
  3. Ensure this vlan exists on a device to be ingested
  4. Run the 'Sync Network Data From Network' job with vlan syncing enabled