From baa9c61160c8fdee7d0d4719501ff6a558577338 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Fri, 3 Dec 2010 16:38:54 -0800 Subject: Change 'config-mgmt' to 'config-management' to appease support. --- .../remote-archive/commit-uri/node.def | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 templates-cfg/system/config-management/remote-archive/commit-uri/node.def (limited to 'templates-cfg/system/config-management/remote-archive/commit-uri/node.def') 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: ; Uniform Resource Identifier +comp_help: + "scp://:@/" + "ftp://:@/" + "tftp:///" \ No newline at end of file -- cgit v1.2.3