Added TUNNEL_ID action type to GroupModBuilder
Change-Id: Ic933b0d60af093627413afbe9e81c4afe468d274
diff --git a/providers/openflow/group/src/main/java/org/onosproject/provider/of/group/impl/GroupModBuilder.java b/providers/openflow/group/src/main/java/org/onosproject/provider/of/group/impl/GroupModBuilder.java
index 9c93844..21982c3 100644
--- a/providers/openflow/group/src/main/java/org/onosproject/provider/of/group/impl/GroupModBuilder.java
+++ b/providers/openflow/group/src/main/java/org/onosproject/provider/of/group/impl/GroupModBuilder.java
@@ -64,6 +64,7 @@
import org.projectfloodlight.openflow.types.OFPort;
import org.projectfloodlight.openflow.types.OFVlanVidMatch;
import org.projectfloodlight.openflow.types.U32;
+import org.projectfloodlight.openflow.types.U64;
import org.projectfloodlight.openflow.types.VlanPcp;
import org.slf4j.Logger;
@@ -346,6 +347,11 @@
break;
case DEC_MPLS_TTL:
return factory.actions().decMplsTtl();
+ case TUNNEL_ID:
+ L2ModificationInstruction.ModTunnelIdInstruction tunnelId =
+ (L2ModificationInstruction.ModTunnelIdInstruction) l2m;
+ oxm = factory.oxms().tunnelId(U64.of(tunnelId.tunnelId()));
+ break;
default:
log.warn("Unimplemented action type {}.", l2m.subtype());
break;