You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by ar...@apache.org on 2009/07/21 15:18:07 UTC

svn commit: r796288 - /incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm

Author: arkurth
Date: Tue Jul 21 13:18:07 2009
New Revision: 796288

URL: http://svn.apache.org/viewvc?rev=796288&view=rev
Log:
VCL-186
Windows.pm: Added call to retrieve public default gateway from the one configured for the management node in vcld.conf if retrieving it from the computer's IP configuration fails. Removed "return 0" call if set_public_default_route() returns false in post_load().

Modified:
    incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm

Modified: incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm?rev=796288&r1=796287&r2=796288&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm Tue Jul 21 13:18:07 2009
@@ -482,7 +482,6 @@
 
 	if (!$self->set_public_default_route()) {
 		notify($ERRORS{'WARNING'}, 0, "unable to set persistent public default route");
-		return 0;
 	}
 
 =item *
@@ -7407,6 +7406,9 @@
 	else {
 		# Dynamic addresses used, get default gateway address assigned to computer
 		$default_gateway = $self->get_public_default_gateway();
+		if (!$default_gateway) {
+			$default_gateway = $self->data->get_management_node_public_default_gateway();
+		}
 	}
 	
 	# Make sure default gateway was retrieved