incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From muralire...@apache.org
Subject [44/50] [abbrv] CLOUDSTACK-299: Egress firewall rules feature for guest network on VR
Date Thu, 31 Jan 2013 14:22:59 GMT
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b6727e56/server/test/com/cloud/network/MockFirewallManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/test/com/cloud/network/MockFirewallManagerImpl.java b/server/test/com/cloud/network/MockFirewallManagerImpl.java
index 1a79acf..7311d0e 100644
--- a/server/test/com/cloud/network/MockFirewallManagerImpl.java
+++ b/server/test/com/cloud/network/MockFirewallManagerImpl.java
@@ -32,6 +32,7 @@ import com.cloud.network.rules.FirewallRule;
 import com.cloud.network.rules.FirewallRuleVO;
 import com.cloud.network.rules.FirewallRule.FirewallRuleType;
 import com.cloud.network.rules.FirewallRule.Purpose;
+import com.cloud.network.rules.FirewallRule.TrafficType;
 import com.cloud.user.Account;
 import com.cloud.utils.Pair;
 import com.cloud.utils.component.Manager;
@@ -64,13 +65,6 @@ public class MockFirewallManagerImpl implements FirewallManager,
 	}
 
 	@Override
-	public FirewallRule createFirewallRule(FirewallRule rule)
-			throws NetworkRuleConflictException {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-	@Override
 	public Pair<List<? extends FirewallRule>, Integer> listFirewallRules(
 			ListFirewallRulesCmd cmd) {
 		// TODO Auto-generated method stub
@@ -84,13 +78,6 @@ public class MockFirewallManagerImpl implements FirewallManager,
 	}
 
 	@Override
-	public boolean applyFirewallRules(long ipId, Account caller)
-			throws ResourceUnavailableException {
-		// TODO Auto-generated method stub
-		return false;
-	}
-
-	@Override
 	public FirewallRule getFirewallRule(long ruleId) {
 		// TODO Auto-generated method stub
 		return null;
@@ -110,14 +97,6 @@ public class MockFirewallManagerImpl implements FirewallManager,
 	}
 
 	@Override
-	public void validateFirewallRule(Account caller, IPAddressVO ipAddress,
-			Integer portStart, Integer portEnd, String proto, Purpose purpose,
-			FirewallRuleType type) {
-		// TODO Auto-generated method stub
-
-	}
-
-	@Override
 	public boolean applyRules(List<? extends FirewallRule> rules,
 			boolean continueOnError, boolean updateRulesInDB)
 			throws ResourceUnavailableException {
@@ -154,16 +133,6 @@ public class MockFirewallManagerImpl implements FirewallManager,
 	}
 
 	@Override
-	public FirewallRule createFirewallRule(long ipAddrId, Account caller,
-			String xId, Integer portStart, Integer portEnd, String protocol,
-			List<String> sourceCidrList, Integer icmpCode, Integer icmpType,
-			Long relatedRuleId, FirewallRuleType type, long networkId)
-			throws NetworkRuleConflictException {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-	@Override
 	public FirewallRule createRuleForAllCidrs(long ipAddrId, Account caller,
 			Integer startPort, Integer endPort, String protocol,
 			Integer icmpCode, Integer icmpType, Long relatedRuleId,
@@ -197,6 +166,52 @@ public class MockFirewallManagerImpl implements FirewallManager,
 
 	}
 
+    @Override
+    public FirewallRule createFirewallRule(Long ipAddrId, Account caller,
+            String xId, Integer portStart, Integer portEnd, String protocol,
+            List<String> sourceCidrList, Integer icmpCode, Integer icmpType,
+            Long relatedRuleId, FirewallRuleType type, Long networkId,
+            TrafficType traffictype) throws NetworkRuleConflictException {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    @Override
+    public void validateFirewallRule(Account caller, IPAddressVO ipAddress,
+            Integer portStart, Integer portEnd, String proto, Purpose purpose,
+            FirewallRuleType type, Long networkid, TrafficType trafficType) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    @Override
+    public boolean applyEgressFirewallRules(FirewallRule rule, Account caller)
+            throws ResourceUnavailableException {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
+    @Override
+    public boolean applyIngressFirewallRules(long Ipid, Account caller)
+            throws ResourceUnavailableException {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
+    @Override
+    public FirewallRule createEgressFirewallRule(FirewallRule rule)
+            throws NetworkRuleConflictException {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    @Override
+    public FirewallRule createIngressFirewallRule(FirewallRule rule)
+            throws NetworkRuleConflictException {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
  
 
 }


Mime
View raw message