From c28add8e387cbafb5fb4774fa0f12ee5a3e5fec6 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Tue, 24 May 2011 15:04:08 -0700 Subject: simplify commit-archive implementation --- .../config-management/commit-archive/location/node.def | 13 +------------ .../system/config-management/commit-archive/node.def | 4 +++- 2 files changed, 4 insertions(+), 13 deletions(-) (limited to 'templates-cfg/system') diff --git a/templates-cfg/system/config-management/commit-archive/location/node.def b/templates-cfg/system/config-management/commit-archive/location/node.def index ff0d946..c58b3b1 100644 --- a/templates-cfg/system/config-management/commit-archive/location/node.def +++ b/templates-cfg/system/config-management/commit-archive/location/node.def @@ -1,5 +1,4 @@ multi: -priority: 400 type: txt help: Commit archive location @@ -7,18 +6,8 @@ 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 + "tftp:///" diff --git a/templates-cfg/system/config-management/commit-archive/node.def b/templates-cfg/system/config-management/commit-archive/node.def index f4414ab..3587517 100644 --- a/templates-cfg/system/config-management/commit-archive/node.def +++ b/templates-cfg/system/config-management/commit-archive/node.def @@ -1 +1,3 @@ -help: Commit archival settings \ No newline at end of file +priority: 400 +help: Commit archival settings +end: sudo ${vyatta_sbindir}/vyatta-config-mgmt.pl --action=update-uri -- cgit v1.2.3