summaryrefslogtreecommitdiff
path: root/scripts/system
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-11-21 17:05:44 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-11-21 17:05:44 -0800
commit62af8baf3a696f774430117927440c114248a81d (patch)
tree77956280017b2dff1c06e29d9c04b096f68bc552 /scripts/system
parent5021e2073b50f3f2022d19c07870b11604548689 (diff)
downloadvyatta-cfg-quagga-62af8baf3a696f774430117927440c114248a81d.tar.gz
vyatta-cfg-quagga-62af8baf3a696f774430117927440c114248a81d.zip
Convert to Vyatta::Config hierarchy
Diffstat (limited to 'scripts/system')
-rwxr-xr-xscripts/system/vyatta_update_login.pl8
-rwxr-xr-xscripts/system/vyatta_update_resolv.pl4
2 files changed, 6 insertions, 6 deletions
diff --git a/scripts/system/vyatta_update_login.pl b/scripts/system/vyatta_update_login.pl
index ad33412a..eb7baeee 100755
--- a/scripts/system/vyatta_update_login.pl
+++ b/scripts/system/vyatta_update_login.pl
@@ -18,10 +18,10 @@
use strict;
use lib "/opt/vyatta/share/perl5";
-use VyattaConfig;
+use Vyatta::Config;
# handle "user"
-my $uconfig = new VyattaConfig;
+my $uconfig = new Vyatta::Config;
$uconfig->setLevel("system login user");
my %users = $uconfig->listNodeStatus();
@@ -170,7 +170,7 @@ sub remove_tacacs {
# Finally, service and protocol will need to be removed. They are just
# in there for troubleshootig purposes right now.
#
-my $tconfig = new VyattaConfig;
+my $tconfig = new Vyatta::Config;
if ($tconfig->isDeleted("system login tacacs-plus")) { remove_tacacs; }
$tconfig->setLevel("system login tacacs-plus");
my @tacacs_params = $tconfig->listNodes();
@@ -291,7 +291,7 @@ sub add_radius_servers {
}
# handle "radius-server"
-my $rconfig = new VyattaConfig;
+my $rconfig = new Vyatta::Config;
$rconfig->setLevel("system login radius-server");
my %servers = $rconfig->listNodeStatus();
my @server_keys = sort keys %servers;
diff --git a/scripts/system/vyatta_update_resolv.pl b/scripts/system/vyatta_update_resolv.pl
index 8f0e9ead..d8e30961 100755
--- a/scripts/system/vyatta_update_resolv.pl
+++ b/scripts/system/vyatta_update_resolv.pl
@@ -34,8 +34,8 @@ my $dhclient_script = 0;
GetOptions("change_dir=s" => \$change_dir, "modify_dir=s" => \$modify_dir, "dhclient-script=i" => \$dhclient_script );
-use VyattaConfig;
-my $vc = new VyattaConfig();
+use Vyatta::Config;
+my $vc = new Vyatta::Config();
if ($change_dir ne '') {
$vc->{_changes_only_dir_base} = $change_dir;