From 1151679260e673f69bdb637fec7773b574f3c7b0 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. --- scripts/system/vyatta_update_login.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/system') 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