diff options
Diffstat (limited to 'templates-cfg/system/config-management/commit-archive')
-rw-r--r-- | templates-cfg/system/config-management/commit-archive/location/node.def | 24 | ||||
-rw-r--r-- | templates-cfg/system/config-management/commit-archive/node.def | 1 |
2 files changed, 25 insertions, 0 deletions
diff --git a/templates-cfg/system/config-management/commit-archive/location/node.def b/templates-cfg/system/config-management/commit-archive/location/node.def new file mode 100644 index 0000000..ff0d946 --- /dev/null +++ b/templates-cfg/system/config-management/commit-archive/location/node.def @@ -0,0 +1,24 @@ +multi: +priority: 400 +type: txt +help: Commit archive location + +syntax:expression: exec "/opt/vyatta/sbin/vyatta-config-mgmt.pl \ + --action=valid-uri \ + --uri=\"$VAR(@)\" "; "Invalid URI" + +create: if [ "$COMMIT_SIBLING_POSITION" = "LAST" ] || \ + [ "$COMMIT_SIBLING_POSITION" = "FIRSTLAST" ] ; then + sudo ${vyatta_sbindir}/vyatta-config-mgmt.pl --action=add-uri + fi; + +delete: if [ "$COMMIT_SIBLING_POSITION" = "LAST" ] || \ + [ "$COMMIT_SIBLING_POSITION" = "FIRSTLAST" ] ; then + sudo ${vyatta_sbindir}/vyatta-config-mgmt.pl --action=del-uri + fi; + +val_help: <uri> ; Uniform Resource Identifier +comp_help: + "scp://<user>:<passwd>@<host>/<dir>" + "ftp://<user>:<passwd>@<host>/<dir>" + "tftp://<host>/<dir>"
\ No newline at end of file diff --git a/templates-cfg/system/config-management/commit-archive/node.def b/templates-cfg/system/config-management/commit-archive/node.def new file mode 100644 index 0000000..f4414ab --- /dev/null +++ b/templates-cfg/system/config-management/commit-archive/node.def @@ -0,0 +1 @@ +help: Commit archival settings
\ No newline at end of file |