This enables startup config customization at runtime, by embedding the variables in the startup config body. Both file-based and inline startup configs are supported.
This enables startup config customization at runtime, by embedding the variables in the startup config body. Both file-based and inline startup configs are supported.
❯ cat cfg-with-env.cfg
set / system information location ${SRL_LOCATION:=default-value}
-
The snippet above will have the SRL_LOCATION variable set to default-value if the variable is not set in the environment and will use the env var value otherwise.