From 7412ffad5efbe271fcd933c2a554b2ccf8c4821c Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 2 Jun 2009 15:54:57 -0700 Subject: 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. (cherry picked from commit 1151679260e673f69bdb637fec7773b574f3c7b0) --- scripts/system/vyatta_update_login.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/system/vyatta_update_login.pl') 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/; -- cgit v1.2.3