Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meraki Integration Failing Loading Prefixes with Multiple Assigned Locations #593

Open
jdrew82 opened this issue Oct 30, 2024 · 0 comments
Assignees
Labels
integration: meraki Issues/PRs for Meraki integration. type: bug Issues/PRs addressing a bug.

Comments

@jdrew82
Copy link
Contributor

jdrew82 commented Oct 30, 2024

Environment

  • Python version: 3.10
  • Nautobot version: 2.3.8
  • nautobot-ssot version: 3.2.0

Expected Behavior

Expect Meraki integration to complete loading Prefixes with assigned Locations.

Observed Behavior

See error when loading Prefix with multiple Locations assigned:

  File "/usr/local/lib/python3.10/site-packages/nautobot_ssot/jobs/base.py", line 171, in sync_data
    self.load_target_adapter()
  File "/usr/local/lib/python3.10/site-packages/nautobot_ssot/integrations/meraki/jobs.py", line 144, in load_target_adapter
    self.target_adapter.load()
  File "/usr/local/lib/python3.10/site-packages/nautobot_ssot/integrations/meraki/diffsync/adapters/nautobot.py", line 360, in load
    self.load_prefixes()
  File "/usr/local/lib/python3.10/site-packages/nautobot_ssot/integrations/meraki/diffsync/adapters/nautobot.py", line 191, in load_prefixes
    location=prefix.location.name if prefix.location else "",
  File "/usr/local/lib/python3.10/site-packages/nautobot/ipam/models.py", line 687, in location
    raise self.locations.model.MultipleObjectsReturned(
nautobot.dcim.models.locations.Location.MultipleObjectsReturned: Multiple Location objects returned. Please refer to locations.

Steps to Reproduce

  1. Install Nautobot and SSoT.
  2. Enable Meraki integration and configure to communicate to Meraki.
  3. Run Job with Prefixes that have multiple assigned locations.
@jdrew82 jdrew82 added type: bug Issues/PRs addressing a bug. integration: meraki Issues/PRs for Meraki integration. labels Oct 30, 2024
@jdrew82 jdrew82 self-assigned this Oct 30, 2024
@jdrew82 jdrew82 mentioned this issue Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration: meraki Issues/PRs for Meraki integration. type: bug Issues/PRs addressing a bug.
Projects
None yet
Development

No branches or pull requests

1 participant