Fix bmcconfig issue with ipv6 networks in table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12933 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -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 '<xcatmaster>') {
 | 
			
		||||
	$gw=xCAT::Utils->my_ip_facing($ip);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user