Hi All
The feature request we would like to request is to have a download button on devices config page so that the config could be downloaded as a text file.
This could also be expanded to have a download all configs button on the oxdized page.
Thanks
1 Like
This would be great. Anyone know a way to hack this in in the mean time?
I had a go at adding this myself. PR here
librenms:master
← gazpachoking:download-config
opened 09:34PM - 07 Dec 22 UTC
Adds a button to the device configuration page to download the viewed config ver… sion from oxidized.
On modern browsers this will just open the raw config in a new tab, since the 'download' attribute on the link doesn't apply for security reasons when linking to another domain. This could be fixed by adding an endpoint to librenms to proxy the raw config, but it didn't seem worth it since you can just right click the link and do a save as, or save from the resulting tab.
This also fixes a small bug where the version number passed in oxidized url parameters was always equal to the maximum version number. Seems oxidized ignored this argument though, so it doesn't matter much.
Feature request here:
https://community.librenms.org/t/oxidized-configuration-download-button/11780
![image](https://user-images.githubusercontent.com/187133/206299142-6b679e40-e68b-4cc5-8b66-a4fa904c3aad.png)
DO NOT DELETE THE UNDERLYING TEXT
#### Please note
> Please read this information carefully. You can run `./lnms dev:check` to check your code before submitting.
- [x] Have you followed our [code guidelines?](https://docs.librenms.org/Developing/Code-Guidelines/)
- [x] If my Pull Request does some changes/fixes/enhancements in the WebUI, I have inserted a screenshot of it.
- [x] If my Pull Request makes discovery/polling/yaml changes, I have added/updated [test data](https://docs.librenms.org/Developing/os/Test-Units/).
#### Testers
If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert.
1 Like