Skip Menu |

This queue is for tickets about the Net-Ifconfig-Wrapper CPAN distribution.

Report information
The Basics
Id: 6339
Status: resolved
Priority: 0/
Queue: Net-Ifconfig-Wrapper

People
Owner: Nobody in particular
Requestors: wob [...] bonch.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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) = @_;
Fixed in 0.05