We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Device is onboarded in the location that was sent in the csv file.
If there is 2 locations with same name and same name parent it will error out saying that there are 2 locations when trying to update the location.
Instead of finding the location__name maybe switch it to use the PK or UUID of the location and not the name.
This would require everyone put the UUID in the csv and not the name though.
onboarding_device = self.device( adapter=self, pk=device.pk, device_type__model=device.device_type.model, location__name=device.location.name, <<<<<<<<<<<<<< name=device.name, platform__name=device.platform.name if device.platform else "", primary_ip4__host=device.primary_ip4.host if device.primary_ip4 else "", primary_ip4__status__name=(device.primary_ip4.status.name if device.primary_ip4 else ""), role__name=device.role.name, status__name=device.status.name, secrets_group__name=(device.secrets_group.name if device.secrets_group else ""), interfaces=interfaces, mask_length=(device.primary_ip4.mask_length if device.primary_ip4 else None), serial=device.serial, )
The text was updated successfully, but these errors were encountered:
I will try to work on it.
Sorry, something went wrong.
No branches or pull requests
Environment
Expected Behavior
Device is onboarded in the location that was sent in the csv file.
Observed Behavior
If there is 2 locations with same name and same name parent it will error out saying that there are 2 locations when trying to update the location.
Instead of finding the location__name maybe switch it to use the PK or UUID of the location and not the name.
This would require everyone put the UUID in the csv and not the name though.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: