summaryrefslogtreecommitdiff
path: root/templates-cfg/system/config-management/commit-archive/location/node.def
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-12-22 11:51:45 -0800
committerStig Thormodsrud <stig@vyatta.com>2010-12-22 11:51:45 -0800
commit3a0b5ade7a56b17ecc55ce29f63a9ff4e4533b79 (patch)
treede538979b2e5d53b124ecbe3a85078e8cdf86906 /templates-cfg/system/config-management/commit-archive/location/node.def
parent5cbdcf5882c198f0e195d576744d15b4652f623e (diff)
downloadvyatta-config-mgmt-3a0b5ade7a56b17ecc55ce29f63a9ff4e4533b79.tar.gz
vyatta-config-mgmt-3a0b5ade7a56b17ecc55ce29f63a9ff4e4533b79.zip
Rename 'remote-archive commit-uri' to 'commit-archive location' per design spec review comments.
Diffstat (limited to 'templates-cfg/system/config-management/commit-archive/location/node.def')
-rw-r--r--templates-cfg/system/config-management/commit-archive/location/node.def24
1 files changed, 24 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