summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-12-22 11:51:45 -0800
committerStig Thormodsrud <stig@vyatta.com>2010-12-22 11:51:45 -0800
commit3a0b5ade7a56b17ecc55ce29f63a9ff4e4533b79 (patch)
treede538979b2e5d53b124ecbe3a85078e8cdf86906
parent5cbdcf5882c198f0e195d576744d15b4652f623e (diff)
downloadvyatta-config-mgmt-3a0b5ade7a56b17ecc55ce29f63a9ff4e4533b79.tar.gz
vyatta-config-mgmt-3a0b5ade7a56b17ecc55ce29f63a9ff4e4533b79.zip
Rename 'remote-archive commit-uri' to 'commit-archive location' per design spec review comments.
-rwxr-xr-xscripts/vyatta-commit-push.pl4
-rwxr-xr-xscripts/vyatta-config-mgmt.pl8
-rw-r--r--templates-cfg/system/config-management/commit-archive/location/node.def (renamed from templates-cfg/system/config-management/remote-archive/commit-uri/node.def)2
-rw-r--r--templates-cfg/system/config-management/commit-archive/node.def1
-rw-r--r--templates-cfg/system/config-management/remote-archive/node.def1
5 files changed, 8 insertions, 8 deletions
diff --git a/scripts/vyatta-commit-push.pl b/scripts/vyatta-commit-push.pl
index 526ebe5..f501366 100755
--- a/scripts/vyatta-commit-push.pl
+++ b/scripts/vyatta-commit-push.pl
@@ -44,8 +44,8 @@ use Sys::Hostname;
my $debug = 0;
my $config = new Vyatta::Config;
-$config->setLevel('system config-management remote-archive');
-my @uris = $config->returnOrigValues('commit-uri');
+$config->setLevel('system config-management commit-archive');
+my @uris = $config->returnOrigValues('location');
if (scalar(@uris) < 1) {
print "No URI's configured\n";
diff --git a/scripts/vyatta-config-mgmt.pl b/scripts/vyatta-config-mgmt.pl
index b57db0e..5bd1b03 100755
--- a/scripts/vyatta-config-mgmt.pl
+++ b/scripts/vyatta-config-mgmt.pl
@@ -147,8 +147,8 @@ my ($cmd, $rc) = ('', 1);
if ($action eq 'add-uri') {
print "add-uri\n" if $debug;
my $config = new Vyatta::Config;
- $config->setLevel('system config-management remote-archive');
- my @uris = $config->returnValues('commit-uri');
+ $config->setLevel('system config-management commit-archive');
+ my @uris = $config->returnValues('location');
my $link = get_link($commit_uri_script);
if (scalar(@uris) >= 1 and ! -e $link) {
print "add link [$link]\n" if $debug;
@@ -161,8 +161,8 @@ if ($action eq 'add-uri') {
if ($action eq 'del-uri') {
print "del-uri\n" if $debug;
my $config = new Vyatta::Config;
- $config->setLevel('system config-management remote-archive');
- my @uris = $config->returnValues('commit-uri');
+ $config->setLevel('system config-management commit-archive');
+ my @uris = $config->returnValues('location');
if (scalar(@uris) <= 0) {
my $link = get_link($commit_uri_script);
print "remove link [$link]\n" if $debug;
diff --git a/templates-cfg/system/config-management/remote-archive/commit-uri/node.def b/templates-cfg/system/config-management/commit-archive/location/node.def
index 7b483f9..ff0d946 100644
--- a/templates-cfg/system/config-management/remote-archive/commit-uri/node.def
+++ b/templates-cfg/system/config-management/commit-archive/location/node.def
@@ -1,7 +1,7 @@
multi:
priority: 400
type: txt
-help: Commit URI
+help: Commit archive location
syntax:expression: exec "/opt/vyatta/sbin/vyatta-config-mgmt.pl \
--action=valid-uri \
diff --git a/templates-cfg/system/config-management/commit-archive/node.def b/templates-cfg/system/config-management/commit-archive/node.def
new file mode 100644
index 0000000..f4414ab
--- /dev/null
+++ b/templates-cfg/system/config-management/commit-archive/node.def
@@ -0,0 +1 @@
+help: Commit archival settings \ No newline at end of file
diff --git a/templates-cfg/system/config-management/remote-archive/node.def b/templates-cfg/system/config-management/remote-archive/node.def
deleted file mode 100644
index 073ba7a..0000000
--- a/templates-cfg/system/config-management/remote-archive/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: Remote archival settings \ No newline at end of file