We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
SSOT [ACI] should sync regardless of location type. Not all implementations will use "site" location type.
Attempting to sync aci data if location type "site" does not exist results in failure
The text was updated successfully, but these errors were encountered:
@kingfetty Have you tested 3.3.0? I don't think this is an issue any longer.
Sorry, something went wrong.
@jdrew82 Yes this is still an issue in 3.3.0 and have tested as such.
Attempting to sync ACI without a LocationType named "Site" produces the following Job resutl:
{ "exc_message": [ "Location matching query does not exist." ], "exc_module": "nautobot.dcim.models.locations", "exc_type": "Location.DoesNotExist" }
If you examine the source code in the ACI diffsync model: https://github.com/nautobot/nautobot-app-ssot/blob/develop/nautobot_ssot/integrations/aci/diffsync/models/nautobot.py
You will see the create, update, and delete functions all rely on querying the location by specifying the LocationType must be "Site"
Create: location=Location.objects.get(name=ids["site"], location_type=LocationType.objects.get(name="Site"))
location=Location.objects.get(name=ids["site"], location_type=LocationType.objects.get(name="Site"))
Update/Delete: location=Location.objects.get(name=self.site, location_type=LocationType.objects.get(name="Site")),
location=Location.objects.get(name=self.site, location_type=LocationType.objects.get(name="Site")),
@kingfetty I see it now. Apologies for missing this before. I've gone ahead and got a fix coming shortly.
Successfully merging a pull request may close this issue.
Environment
Expected Behavior
SSOT [ACI] should sync regardless of location type. Not all implementations will use "site" location type.
Observed Behavior
Attempting to sync aci data if location type "site" does not exist results in failure
Steps to Reproduce
The text was updated successfully, but these errors were encountered: