summaryrefslogtreecommitdiff
path: root/templates-cfg/system/config-management/remote-archive/commit-uri/node.def
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-12-03 16:38:54 -0800
committerStig Thormodsrud <stig@vyatta.com>2010-12-03 16:38:54 -0800
commitbaa9c61160c8fdee7d0d4719501ff6a558577338 (patch)
tree7d89870a7d998abdb108cc9dba3b5004fb5dafb0 /templates-cfg/system/config-management/remote-archive/commit-uri/node.def
parente89d82fab791f5695dcbaf5646d50aa81d9d9dbb (diff)
downloadvyatta-config-mgmt-baa9c61160c8fdee7d0d4719501ff6a558577338.tar.gz
vyatta-config-mgmt-baa9c61160c8fdee7d0d4719501ff6a558577338.zip
Change 'config-mgmt' to 'config-management' to appease support.
Diffstat (limited to 'templates-cfg/system/config-management/remote-archive/commit-uri/node.def')
-rw-r--r--templates-cfg/system/config-management/remote-archive/commit-uri/node.def24
1 files changed, 24 insertions, 0 deletions
diff --git a/templates-cfg/system/config-management/remote-archive/commit-uri/node.def b/templates-cfg/system/config-management/remote-archive/commit-uri/node.def
new file mode 100644
index 0000000..7b483f9
--- /dev/null
+++ b/templates-cfg/system/config-management/remote-archive/commit-uri/node.def
@@ -0,0 +1,24 @@
+multi:
+priority: 400
+type: txt
+help: Commit URI
+
+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