Adding another constructor to ContainerFlowConfig to take dlVlan. 21/3021/1
authorMadhu Venugopal <mavenugo@gmail.com>
Fri, 22 Nov 2013 21:24:15 +0000 (13:24 -0800)
committerMadhu Venugopal <mavenugo@gmail.com>
Fri, 22 Nov 2013 21:24:15 +0000 (13:24 -0800)
Being an immutable object, there is no other way to set the Vlan (other than via NB Serialization)

Change-Id: Ie26c5b9770275095152484f90f61722418db6991
Signed-off-by: Madhu Venugopal <mavenugo@gmail.com>
opendaylight/containermanager/api/src/main/java/org/opendaylight/controller/containermanager/ContainerFlowConfig.java

index baa2c782538255b6da9dfff772d10406e9eabf47..9740a9259833c0ef9d60ad821eaea1e0ee723aef 100644 (file)
@@ -114,6 +114,17 @@ public class ContainerFlowConfig implements Serializable {
         //this.unidirectional = false;
     }
 
+    public ContainerFlowConfig(String name, String dlVlan, String srcIP, String dstIP, String proto, String srcPort,
+            String dstPort) {
+        this.name = name;
+        this.dlVlan = dlVlan;
+        this.nwSrc = srcIP;
+        this.nwDst = dstIP;
+        this.protocol = proto;
+        this.tpSrc = srcPort;
+        this.tpDst = dstPort;
+    }
+
 
     public ContainerFlowConfig(ContainerFlowConfig containerFlowConfig) {
         this.name = containerFlowConfig.name;