mirror of https://github.com/apache/cloudstack.git
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:
parent
ee83b02c76
commit
066b374c35
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue