From 03e418ee629333087645e7ea6a470fdbec2cc645 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 24 May 2012 20:35:10 +0000 Subject: [PATCH] Fix bmcconfig issue with ipv6 networks in table git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12931 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/bmcconfig.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/bmcconfig.pm b/xCAT-server/lib/xcat/plugins/bmcconfig.pm index 9f7f0e875..43207d3e1 100644 --- a/xCAT-server/lib/xcat/plugins/bmcconfig.pm +++ b/xCAT-server/lib/xcat/plugins/bmcconfig.pm @@ -43,7 +43,7 @@ sub net_parms { my $ipnum = ($1<<24)+($2<<16)+($3<<8)+$4; $mask =~ /([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/; my $masknum = ($1<<24)+($2<<16)+($3<<8)+$4; - $net =~ /([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/; + $net =~ /([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/ or next; #next if ipv6, TODO: IPv6 support my $netnum = ($1<<24)+($2<<16)+($3<<8)+$4; if ($gw eq '') { $gw=xCAT::Utils->my_ip_facing($ip);