You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by sw...@apache.org on 2016/05/12 15:04:36 UTC
[07/17] git commit: updated refs/heads/4.8 to dbbc37e
CLOUDSTACK-9287 - Bring up the private gw interface on state change to master
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6a767732
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6a767732
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6a767732
Branch: refs/heads/4.8
Commit: 6a767732f959186e95c71d31a2ed49bb67a85473
Parents: 057b54a
Author: Remi Bergsma <gi...@remi.nl>
Authored: Sun Feb 14 18:09:03 2016 +0100
Committer: Remi Bergsma <gi...@remi.nl>
Committed: Sat Apr 9 21:14:10 2016 +0200
----------------------------------------------------------------------
systemvm/patches/debian/config/opt/cloud/bin/cs/CsRedundant.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6a767732/systemvm/patches/debian/config/opt/cloud/bin/cs/CsRedundant.py
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsRedundant.py b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsRedundant.py
index 92f27ce..7d34e30 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsRedundant.py
+++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsRedundant.py
@@ -292,7 +292,7 @@ class CsRedundant(object):
logging.debug("Setting router to master")
dev = ''
- ips = [ip for ip in self.address.get_ips() if ip.is_public() and ip.get_device() in PUBLIC_INTERFACE]
+ ips = [ip for ip in self.address.get_ips() if ip.is_public()]
route = CsRoute()
for ip in ips:
if dev == ip.get_device():
@@ -307,7 +307,8 @@ class CsRedundant(object):
try:
gateway = ip.get_gateway()
logging.info("Adding gateway ==> %s to device ==> %s" % (gateway, dev))
- route.add_defaultroute(gateway)
+ if ip.get_device() in PUBLIC_INTERFACE:
+ route.add_defaultroute(gateway)
except:
logging.error("ERROR getting gateway from device %s" % dev)
else: