diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-06-02 15:54:57 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2009-07-17 14:30:20 -0700 |
commit | 7412ffad5efbe271fcd933c2a554b2ccf8c4821c (patch) | |
tree | b1e0b8692e9db954873a0a029a130309609cbcf3 /scripts/system | |
parent | ba60053e94147f401efd298fe1bd4d38cf9f34f7 (diff) | |
download | vyatta-cfg-quagga-7412ffad5efbe271fcd933c2a554b2ccf8c4821c.tar.gz vyatta-cfg-quagga-7412ffad5efbe271fcd933c2a554b2ccf8c4821c.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.
(cherry picked from commit 1151679260e673f69bdb637fec7773b574f3c7b0)
Diffstat (limited to 'scripts/system')
-rw-r--r-- | scripts/system/vyatta_update_login.pl | 4 |
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/; |