truenas-go-sdk
truenas-go-sdk copied to clipboard
Automatic translation script for cfg/ yaml files
The new ./cfg/translate.py
script translates specific routes from a cfg/<release>_original.yaml
file into the corresponding cfg/<release>.yaml
file.
It attempts to maintain formatting on routes it's not adding/updating.
For example, to update bluefin.yaml with /interface and /pool routes (from bluefin_original.yaml):
./cfg/translate.py bluefin /interface /pool
The final goal of the translate script is to allow adding new routes to the SDK with manual editing, and without making unrelated unintentional changes to the "curated" yaml.
Some formatting changes are also added in this PR as they weren't consistent with the translation.