Subject: | alises do not work correctly under solaris9 (5.9) |
Aliases were not added or removed correctly on solaris9 (5.9) in Net-Ifconfig-Wrapper 0.04. Patch provided.
You may also need to fix the -alias argument for solaris8 (5.8) like the fix I put in for solaris 9.
system info:
rfranklin@build1:/export/home/rfranklin$ /usr/local/bin/perl -v
This is perl, v5.8.3 built for sun4-solaris
rfranklin@build1:/export/home/rfranklin$ uname -a
SunOS build1 5.9 Generic_112233-11 sun4u sparc SUNW,UltraAX-i2
Thanks for the module, it's really made my life easier writing scripts that need to manipulate the network interfaces. :)
Robert
--- Wrapper.pm Wed Feb 18 16:29:58 2004
+++ Wrapper.pm.new Mon May 17 21:53:56 2004
@@ -754,6 +754,7 @@
$Ifconfig{'+alias'}{'linux'} = $Ifconfig{'+alias'}{'solaris'};
$Ifconfig{'+alias'}{'solaris'}{'SunOS'}{'5.8'}{'ifconfig'} = '/sbin/ifconfig %Iface%:%Logic% plumb; /sbin/ifconfig %Iface%:%Logic% inet %Addr% netmask %Mask% up';
+$Ifconfig{'+alias'}{'solaris'}{'SunOS'}{'5.9'}{'ifconfig'} = '/sbin/ifconfig %Iface%:%Logic% plumb; /sbin/ifconfig %Iface%:%Logic% inet %Addr% netmask %Mask% up';
$Ifconfig{'alias'} = $Ifconfig{'+alias'};
@@ -771,6 +772,8 @@
$Ifconfig{'-alias'}{'darwin'} = $Ifconfig{'-alias'}{'freebsd'};
$Ifconfig{'-alias'}{'linux'} = $Ifconfig{'-alias'}{'solaris'};
+$Ifconfig{'-alias'}{'solaris'}{'SunOS'}{'5.9'}{'ifconfig'} = '/sbin/ifconfig %Iface%:%Logic% unplumb';
+
sub Ifconfig
{
my ($CName, $Iface, $Addr, $Mask) = @_;