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:
Rajani Karuturi 2017-02-03 06:31:55 +05:30
commit 42f0340a1d
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()