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

Sync golden config backup git repo with DB #690

Open
th-nw opened this issue Dec 22, 2023 · 0 comments
Open

Sync golden config backup git repo with DB #690

th-nw opened this issue Dec 22, 2023 · 0 comments

Comments

@th-nw
Copy link

th-nw commented Dec 22, 2023

https://github.com/nautobot/nautobot-plugin-golden-config/blob/7d1626bb1287c7345cd0102813feb1bbe6a3a52c/nautobot_golden_config/nornir_plays/config_compliance.py#L150

As discussed in networktocode nautobot channel currently backup configs can be seen in the UI only if they were pulled from the devices by the backup job. Backup job is responsible not only for populating the git repository, but also for storing the backup configuration in the DB (which is then used as a source for showing the backup configuration in the UI). At the moment there is no other way how to get the backup configuration into the DB, that way if one uses other means of config backup (rancid, manual, ...) they cannot see the config backup file in the detailed view of golden config page.

Suggestion: "Implement a helper job to populate the DB entry (only syncing the git repository with the DB). Similar to the SyncGoldenConfigWithDynamicGroups job (or it could even be an extension to the that job)."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant