[PATCH] Add IPv6 Address

Ludovic Hutin lhutin at ac-nancy-metz.fr
Wed Feb 2 10:38:09 UTC 2011


---
 .../Task/Inventory/OS/Linux/Network/Networks.pm    |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/FusionInventory/Agent/Task/Inventory/OS/Linux/Network/Networks.pm b/lib/FusionInventory/Agent/Task/Inventory/OS/Linux/Network/Networks.pm
index c417604..63cc664 100644
--- a/lib/FusionInventory/Agent/Task/Inventory/OS/Linux/Network/Networks.pm
+++ b/lib/FusionInventory/Agent/Task/Inventory/OS/Linux/Network/Networks.pm
@@ -153,6 +153,7 @@ sub doInventory {
 
             $ifData{DESCRIPTION} = $1 if $line =~ /^(\S+)/; # Interface name
             $ifData{IPADDRESS} = $1 if $line =~ /inet addr:(\S+)/i;
+            $ifData{IPADDRESS6} = $1 if $line =~ /inet6 addr: (\S+)/i;
             $ifData{IPMASK} = $1 if $line =~ /\S*mask:(\S+)/i;
             $ifData{MACADDR} = $1 if $line =~ /hwadd?r\s+(\w{2}:\w{2}:\w{2}:\w{2}:\w{2}:\w{2})/i;
             $ifData{STATUS} = 'Up' if $line =~ /^\s+UP\s/;
-- 
1.7.1


--------------020300040004070001010403--



More information about the Fusioninventory-devel mailing list