mirror of https://github.com/apache/cloudstack.git
Merge pull request #1871 from ustcweizhou/RVR-passwd-server
[4.9] CLOUDSTACK-9692: Fix password server issue in redundant VRsThe 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 issue is caused by commit 45642b8382
* pr/1871:
CLOUDSTACK-9692: Fix password server issue in redundant VRs
Signed-off-by: Rajani Karuturi <rajani.karuturi@accelerite.com>
This commit is contained in:
commit
42f0340a1d
|
|
@ -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