From: Alessandro Boch Date: Fri, 22 Nov 2013 23:31:32 +0000 (+0000) Subject: Merge "Adding another constructor to ContainerFlowConfig to take dlVlan. Being an... X-Git-Tag: jenkins-controller-bulk-release-prepare-only-2-1~357 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=90e562e3dcc64e46a657ef4ab3047b2b709339c7;hp=c8032a93af3a6c981020d7c2500ac957acf5a805 Merge "Adding another constructor to ContainerFlowConfig to take dlVlan. Being an immutable object, there is no other way to set the Vlan (other than via NB Serialization)" --- diff --git a/opendaylight/containermanager/api/src/main/java/org/opendaylight/controller/containermanager/ContainerFlowConfig.java b/opendaylight/containermanager/api/src/main/java/org/opendaylight/controller/containermanager/ContainerFlowConfig.java index baa2c78253..9740a92598 100644 --- a/opendaylight/containermanager/api/src/main/java/org/opendaylight/controller/containermanager/ContainerFlowConfig.java +++ b/opendaylight/containermanager/api/src/main/java/org/opendaylight/controller/containermanager/ContainerFlowConfig.java @@ -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;