summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-06-02 15:54:57 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-06-02 15:54:57 -0700
commit1151679260e673f69bdb637fec7773b574f3c7b0 (patch)
treeb5ccd575c451af5b5a1c52536a6221cb44680772
parent37ba59896d4c9ac5c914d1901d86ed7e7d844871 (diff)
downloadvyatta-cfg-system-1151679260e673f69bdb637fec7773b574f3c7b0.tar.gz
vyatta-cfg-system-1151679260e673f69bdb637fec7773b574f3c7b0.zip
Handle deletion of radius (or other) server
The login class manager must be called if login type is deleted. Also skip updating if no changes to that login type.
-rw-r--r--scripts/system/vyatta_update_login.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/system/vyatta_update_login.pl b/scripts/system/vyatta_update_login.pl
index 94e88ed1..862dffe3 100644
--- a/scripts/system/vyatta_update_login.pl
+++ b/scripts/system/vyatta_update_login.pl
@@ -26,7 +26,9 @@ use Vyatta::Config;
my $config = new Vyatta::Config;
$config->setLevel("system login");
-foreach my $type ($config->listNodes()) {
+my %loginNodes = $config->listNodeStatus();
+while ( my ($type, $status) = each %loginNodes) {
+ next if ($status eq 'static');
my $kind = ucfirst $type;
$kind =~ s/-server/Server/;