You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2015/03/17 11:26:32 UTC

[30/50] git commit: updated refs/heads/master to 3c429ee

Add network stats for isalated networks


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b3da2c54
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b3da2c54
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b3da2c54

Branch: refs/heads/master
Commit: b3da2c54c261edd564f80bc6ad1a276b31a44dc2
Parents: aa585e3
Author: Ian Southam <is...@schubergphilis.com>
Authored: Fri Feb 6 16:34:38 2015 +0100
Committer: wilderrodrigues <wr...@schubergphilis.com>
Committed: Mon Mar 16 11:40:04 2015 +0100

----------------------------------------------------------------------
 systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b3da2c54/systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py
index df6fdc7..80dfcdc 100644
--- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py
+++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py
@@ -355,6 +355,13 @@ class CsIP:
         if self.get_type() in ["control"]:
             self.fw.append(["filter", "", "-A FW_OUTBOUND -m state --state RELATED,ESTABLISHED -j ACCEPT"])
             self.fw.append(["filter", "", "-A INPUT -i %s -p tcp -m tcp --dport 3922 -m state --state NEW -j ACCEPT" % self.dev])
+  		self.fw.append(['', 'front', '-A FORWARD -j NETWORK_STATS'])
+  		self.fw.append(['', 'front', '-A INPUT -j NETWORK_STATS'])
+  		self.fw.append(['', 'front', '-A OUTPUT -j NETWORK_STATS'])
+  		self.fw.append(['', '', '-A NETWORK_STATS -i eth0 -o eth2'])
+  		self.fw.append(['', '', '-A NETWORK_STATS -i eth2 -o eth0'])
+  		self.fw.append(['', '', '-A NETWORK_STATS -o eth2 ! -i eth0 -p tcp'])
+  		self.fw.append(['', '', '-A NETWORK_STATS -i eth2 ! -o eth0 -p tcp'])
 
     def fw_vpcrouter(self):
         if not self.config.is_vpc():