summaryrefslogtreecommitdiff
path: root/templates/system
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-10-22 17:38:15 -0700
committerStig Thormodsrud <stig@vyatta.com>2010-10-22 17:38:15 -0700
commit32244caf1c30819c38ca977e67557558a976a9d9 (patch)
tree0517568e98c035c2056a8b34ccdb43fa4755373a /templates/system
parent87ae0b4ab3773ec981059ce9337ef5e9292c806d (diff)
downloadvyatta-cfg-system-32244caf1c30819c38ca977e67557558a976a9d9.tar.gz
vyatta-cfg-system-32244caf1c30819c38ca977e67557558a976a9d9.zip
Fist pass at adding archive to uri on commit.
Diffstat (limited to 'templates/system')
-rw-r--r--templates/system/config-mgmt/commit-uri/node.def24
-rw-r--r--templates/system/config-mgmt/node.def1
2 files changed, 25 insertions, 0 deletions
diff --git a/templates/system/config-mgmt/commit-uri/node.def b/templates/system/config-mgmt/commit-uri/node.def
new file mode 100644
index 00000000..7b483f9f
--- /dev/null
+++ b/templates/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
diff --git a/templates/system/config-mgmt/node.def b/templates/system/config-mgmt/node.def
new file mode 100644
index 00000000..03a4d65a
--- /dev/null
+++ b/templates/system/config-mgmt/node.def
@@ -0,0 +1 @@
+help: Configuration management settings \ No newline at end of file