summaryrefslogtreecommitdiff
path: root/templates-cfg/system/config-mgmt/commit-uri
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-10-26 16:58:08 -0700
committerStig Thormodsrud <stig@vyatta.com>2010-10-26 16:58:08 -0700
commitde8b643eb1ff7c056f4e5e9c920387ed2d2d2a11 (patch)
tree333c2e0b2f020ed6469c3076d43050de08cfcb4a /templates-cfg/system/config-mgmt/commit-uri
downloadvyatta-config-mgmt-debian/0.1.tar.gz
vyatta-config-mgmt-debian/0.1.zip
Create vyatta-config-mgmt repo.debian/0.1
Diffstat (limited to 'templates-cfg/system/config-mgmt/commit-uri')
-rw-r--r--templates-cfg/system/config-mgmt/commit-uri/node.def24
1 files changed, 24 insertions, 0 deletions
diff --git a/templates-cfg/system/config-mgmt/commit-uri/node.def b/templates-cfg/system/config-mgmt/commit-uri/node.def
new file mode 100644
index 0000000..7b483f9
--- /dev/null
+++ b/templates-cfg/system/config-mgmt/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