Added support for L4 ports as Criterion
Change-Id: I8789e14c8b3ef577288ab1aef48e00f9f11cbe18
diff --git a/pipelines/fabric/src/main/java/org/onosproject/pipelines/fabric/FabricInterpreter.java b/pipelines/fabric/src/main/java/org/onosproject/pipelines/fabric/FabricInterpreter.java
index e5e90ed..69edeff 100644
--- a/pipelines/fabric/src/main/java/org/onosproject/pipelines/fabric/FabricInterpreter.java
+++ b/pipelines/fabric/src/main/java/org/onosproject/pipelines/fabric/FabricInterpreter.java
@@ -98,6 +98,14 @@
.put(Criterion.Type.IP_PROTO, FabricConstants.HDR_IP_PROTO)
.put(Criterion.Type.ICMPV6_TYPE, FabricConstants.HDR_ICMP_TYPE)
.put(Criterion.Type.ICMPV6_CODE, FabricConstants.HDR_ICMP_CODE)
+ .put(Criterion.Type.UDP_DST, FabricConstants.HDR_L4_DPORT)
+ .put(Criterion.Type.UDP_SRC, FabricConstants.HDR_L4_SPORT)
+ .put(Criterion.Type.UDP_DST_MASKED, FabricConstants.HDR_L4_DPORT)
+ .put(Criterion.Type.UDP_SRC_MASKED, FabricConstants.HDR_L4_SPORT)
+ .put(Criterion.Type.TCP_DST, FabricConstants.HDR_L4_DPORT)
+ .put(Criterion.Type.TCP_SRC, FabricConstants.HDR_L4_SPORT)
+ .put(Criterion.Type.TCP_DST_MASKED, FabricConstants.HDR_L4_DPORT)
+ .put(Criterion.Type.TCP_SRC_MASKED, FabricConstants.HDR_L4_SPORT)
.build();
private static final PiAction NOP = PiAction.builder()