Implementation of IP address classifier.
[groupbasedpolicy.git] / renderers / ofoverlay / src / main / java / org / opendaylight / groupbasedpolicy / renderer / ofoverlay / sf / L4Classifier.java
index da8b8f8934a7ef6599900b4133adc8b10e4db1db..7b30239c4e6f1b8755b18c4d5553a8d0fcde0829 100755 (executable)
@@ -95,11 +95,13 @@ public class L4Classifier extends IpProtoClassifier {
         // XXX TODO generate exception and fail the match
         if (t == null || !(t instanceof String)) return matches;
         String type = (String)t;
-        
-        if ("UDP".equals(type))
-            matches = super.updateMatch(matches, udp);
-        else
-            matches = super.updateMatch(matches, tcp);            
+
+        if ("UDP".equals(type)){
+            params.putAll(udp);
+        } else {
+            params.putAll(tcp);
+        }
+        matches = super.updateMatch(matches, params);
 
         Long sport = null;
         Long dport = null;