Commit 16e368f6 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add a call to setup routes for all of the aliases on an interface

(originally called for just the main address) so that all the routes
get installed properly.
parent 1e967eed
......@@ -15,7 +15,7 @@ use Exporter;
@ISA = "Exporter";
@EXPORT =
qw ( libsetup_init cleanup_node check_status
doifconfig dohostnames check_nickname
doifconfig dohostnames domounts check_nickname
doaccounts dorpms dotarballs dostartupcmd install_deltas
bootsetup nodeupdate startcmdstatus whatsmynickname
TBBackGround TBForkCmd vnodesetup
......@@ -812,6 +812,14 @@ sub doifconfig ()
print STDOUT " $iface $inet $aliases\n";
print IFC "$ifline\n";
print IFC TMROUTECONFIG . " $routearg up\n";
# There could be routes for each alias.
foreach my $alias (split(',', $aliases)) {
$routearg = inet_ntoa(inet_aton($alias) &
inet_aton($mask));
print IFC TMROUTECONFIG . " $routearg up\n";
}
}
else {
warn "*** WARNING: Bad MAC: $mac\n";
......
......@@ -15,7 +15,7 @@ use Exporter;
@ISA = "Exporter";
@EXPORT =
qw ( libsetup_init cleanup_node check_status
doifconfig dohostnames check_nickname
doifconfig dohostnames domounts check_nickname
doaccounts dorpms dotarballs dostartupcmd install_deltas
bootsetup nodeupdate startcmdstatus whatsmynickname
TBBackGround TBForkCmd vnodesetup
......@@ -812,6 +812,14 @@ sub doifconfig ()
print STDOUT " $iface $inet $aliases\n";
print IFC "$ifline\n";
print IFC TMROUTECONFIG . " $routearg up\n";
# There could be routes for each alias.
foreach my $alias (split(',', $aliases)) {
$routearg = inet_ntoa(inet_aton($alias) &
inet_aton($mask));
print IFC TMROUTECONFIG . " $routearg up\n";
}
}
else {
warn "*** WARNING: Bad MAC: $mac\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment