From 5f44014818e4822ecced3e6af9005acbb30d0c36 Mon Sep 17 00:00:00 2001 From: Alessandro Boch Date: Fri, 1 Nov 2013 11:17:05 -0700 Subject: [PATCH] Enabling vlan in flow spec in backend Change-Id: Idfc779b7f0b6b583b96566b1b0aeb321feb394d1 Signed-off-by: Alessandro Boch --- .../controller/containermanager/ContainerFlowConfig.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 c9b5dab808..baa2c78253 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 @@ -707,6 +707,9 @@ public class ContainerFlowConfig implements Serializable { List matches = new ArrayList(); Match match = new Match(); + if (this.dlVlan != null && !this.dlVlan.isEmpty()) { + match.setField(MatchType.DL_VLAN, this.getVlanId()); + } if (this.nwSrc != null && !this.nwSrc.trim().isEmpty()) { String parts[] = this.nwSrc.split("/"); InetAddress ip = NetUtils.parseInetAddress(parts[0]); @@ -760,7 +763,7 @@ public class ContainerFlowConfig implements Serializable { */ @Override public String toString() { - return "Container Flow={name:" + name + " nwSrc:" + nwSrc + " nwDst:" + nwDst + " " + "protocol:" + protocol + return "Container Flow={name:" + name + " dlVlan:" + dlVlan + " nwSrc:" + nwSrc + " nwDst:" + nwDst + " " + "protocol:" + protocol + " tpSrc:" + tpSrc + " tpDst:" + tpDst + "}"; } } -- 2.36.6