Committed by
Gerrit Code Review
Added TUNNEL_ID action type to GroupModBuilder
Change-Id: Ic933b0d60af093627413afbe9e81c4afe468d274
Showing
1 changed file
with
6 additions
and
0 deletions
... | @@ -64,6 +64,7 @@ import org.projectfloodlight.openflow.types.OFGroup; | ... | @@ -64,6 +64,7 @@ import org.projectfloodlight.openflow.types.OFGroup; |
64 | import org.projectfloodlight.openflow.types.OFPort; | 64 | import org.projectfloodlight.openflow.types.OFPort; |
65 | import org.projectfloodlight.openflow.types.OFVlanVidMatch; | 65 | import org.projectfloodlight.openflow.types.OFVlanVidMatch; |
66 | import org.projectfloodlight.openflow.types.U32; | 66 | import org.projectfloodlight.openflow.types.U32; |
67 | +import org.projectfloodlight.openflow.types.U64; | ||
67 | import org.projectfloodlight.openflow.types.VlanPcp; | 68 | import org.projectfloodlight.openflow.types.VlanPcp; |
68 | import org.slf4j.Logger; | 69 | import org.slf4j.Logger; |
69 | 70 | ||
... | @@ -346,6 +347,11 @@ public final class GroupModBuilder { | ... | @@ -346,6 +347,11 @@ public final class GroupModBuilder { |
346 | break; | 347 | break; |
347 | case DEC_MPLS_TTL: | 348 | case DEC_MPLS_TTL: |
348 | return factory.actions().decMplsTtl(); | 349 | return factory.actions().decMplsTtl(); |
350 | + case TUNNEL_ID: | ||
351 | + L2ModificationInstruction.ModTunnelIdInstruction tunnelId = | ||
352 | + (L2ModificationInstruction.ModTunnelIdInstruction) l2m; | ||
353 | + oxm = factory.oxms().tunnelId(U64.of(tunnelId.tunnelId())); | ||
354 | + break; | ||
349 | default: | 355 | default: |
350 | log.warn("Unimplemented action type {}.", l2m.subtype()); | 356 | log.warn("Unimplemented action type {}.", l2m.subtype()); |
351 | break; | 357 | break; | ... | ... |
-
Please register or login to post a comment