From f64584a0b3595ceddccd5707406c5ac27ef26d9f Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 2 Dec 2009 16:13:59 -0800 Subject: Pass more info to login scripts Pass status to login update() which might be useful to handle case when node is deleted. --- 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 8141d72e..c41bb9df 100644 --- a/scripts/system/vyatta_update_login.pl +++ b/scripts/system/vyatta_update_login.pl @@ -30,6 +30,8 @@ my %loginNodes = $config->listNodeStatus(); while ( my ($type, $status) = each %loginNodes) { next if ($status eq 'static'); next if ($type eq 'banner'); + + # convert radius-server to RadiusServer my $kind = ucfirst $type; $kind =~ s/-server/Server/; @@ -38,5 +40,5 @@ while ( my ($type, $status) = each %loginNodes) { # Dynamically invoke update for this type my $login = "Vyatta::Login::$kind"; - $login->update(); + $login->update($status); } -- cgit v1.2.3