You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by fa...@apache.org on 2009/01/09 20:30:23 UTC

svn commit: r733126 - /incubator/vcl/trunk/managementnode/lib/VCL/utils.pm

Author: fapeeler
Date: Fri Jan  9 11:30:23 2009
New Revision: 733126

URL: http://svn.apache.org/viewvc?rev=733126&view=rev
Log:
VCL-47

bug fix - changed conditional checks in getdynamicaddress routine to correct format for windows output 


Modified:
    incubator/vcl/trunk/managementnode/lib/VCL/utils.pm

Modified: incubator/vcl/trunk/managementnode/lib/VCL/utils.pm
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/utils.pm?rev=733126&r1=733125&r2=733126&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/utils.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/utils.pm Fri Jan  9 11:30:23 2009
@@ -1675,10 +1675,10 @@
 		for my $l (@{$sshcmd[1]}) {
 			# skip class a,b,c private addresses
 			next if ($l =~ /IPAddress = $privateIP/);
-			next if ($l =~ /inet addr:10.([.0-9]*)/);
-			next if ($l =~ /inet addr:127([.0-9]*)/);
-			next if ($l =~ /inet addr:172([.0-9]*)/);
-			next if ($l =~ /inet addr:192.168([.0-9]*)/);
+			next if ($l =~ /IPAddress = 10.([.0-9]*)/);
+			next if ($l =~ /IPAddress = 127([.0-9]*)/);
+			next if ($l =~ /IPAddress = 172([.0-9]*)/);
+			next if ($l =~ /IPAddress = 192([.0-9]*)/);
 			if ($l =~ /IPAddress = ([.0-9]*)/) {
 				if ($l !~ /IPAddress = $privateIP/) {
 					#to cover sites using eth0 as public