mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	updated to support remote/distributed networks for DHCP relays or remote flags in networks table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4968 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -2203,6 +2203,21 @@ sub my_nets | ||||
|         $textnet.="/$maskbits"; | ||||
|         $rethash->{$textnet} = $curnet; | ||||
|     } | ||||
|  | ||||
|  | ||||
|     my $nettab = xCAT::Table->new("networks"); | ||||
|     my @vnets = $nettab->getAllAttribs('net','mgtifname','mask'); | ||||
|     foreach(@vnets){ | ||||
|       my $n = $_->{net}; | ||||
|       my $if = $_->{mgtifname}; | ||||
|       my $nm = $_->{mask};  | ||||
|       if ($if =~ /!remote!/) { #only take in networks with special interface | ||||
|         $nm = formatNetmask($nm, 0 , 1); | ||||
|         $n .="/$nm";             | ||||
|         $rethash->{$n} = $if;    | ||||
|       }                  | ||||
|     } | ||||
|  | ||||
|     return $rethash; | ||||
| } | ||||
| #------------------------------------------------------------------------------- | ||||
|   | ||||
		Reference in New Issue
	
	Block a user