CLOUDSTACK-9692: Fix password server issue in redundant VRs

The password server in RVRs has wrong parameters as the gateway of guest nics is None.
In this case, we should get the gateway from /var/cache/cloud/cmdline.
This commit is contained in:
Wei Zhou 2016-12-27 11:19:02 +01:00
parent ee83b02c76
commit 066b374c35
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ class CsInterface:
return self.get_attr("netmask")
def get_gateway(self):
if self.config.is_vpc() or self.config.cmdline().is_redundant():
if self.config.is_vpc() or not self.is_guest():
return self.get_attr("gateway")
else:
return self.config.cmdline().get_guest_gw()