nautobot-app-golden-config icon indicating copy to clipboard operation
nautobot-app-golden-config copied to clipboard

Platform exported by name but imported by ID for Config Replacements

Open matt852 opened this issue 2 years ago • 3 comments

Environment

  • Python version: 3.9.6
  • Nautobot version: 1.2.11
  • nautobot-golden-config version: 1.0.0

Steps to Reproduce

  1. Create a new Config Replacements item and fill out all required fields. Description is optional.
  2. On the Config Replacements page, click the Export item and save the CSV file that is generated.
  3. On the Config Replacements page, click the Import button.
  4. Copy/paste the data from the exported CSV file. An error will occur stating that the "platform" on row 1 is not a valid UUID.

Expected Behavior

The data should import successfully after being directly exported.

Observed Behavior

The data does not import correctly as Platform exports as the slug but imports as the object ID. Additionally, the ID for the platform is not easy to find in the UI, as the slug is used in the URL instead of the UUID when opening the individual Platform object page.

Error: Row 1 platform: “cisco-ios” is not a valid UUID.

matt852 avatar May 05 '22 19:05 matt852

This is related to #248, fixing that should fix this one as well.

itdependsnetworks avatar May 06 '22 00:05 itdependsnetworks

@itdependsnetworks Fixing #248 still does not fix this issue.

matt852 avatar May 06 '22 11:05 matt852

Looks like its at least partially related to this core issue. https://github.com/nautobot/nautobot/issues/254

jeffkala avatar Aug 24 '22 14:08 jeffkala