summaryrefslogtreecommitdiff
path: root/scripts/system/vyatta_update_login.pl
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-02 16:13:59 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-02 16:13:59 -0800
commitf64584a0b3595ceddccd5707406c5ac27ef26d9f (patch)
tree83a2813082d7c782858f03270b2ebe13bfc42149 /scripts/system/vyatta_update_login.pl
parent4698417733a2d9f526f3319f4e5853015f5e82cd (diff)
downloadvyatta-cfg-system-f64584a0b3595ceddccd5707406c5ac27ef26d9f.tar.gz
vyatta-cfg-system-f64584a0b3595ceddccd5707406c5ac27ef26d9f.zip
Pass more info to login scripts
Pass status to login update() which might be useful to handle case when node is deleted.
Diffstat (limited to 'scripts/system/vyatta_update_login.pl')
-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 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);
}