= (L2ModificationInstruction.PushHeaderInstructions) l2m; return factory.actions().pushVlan( EthType.of(pushVlanInstruction.ethernetType().toShort())); case MPLS_PUSH: L2ModificationInstruction.PushHeaderInstructions pushHeaderInstructions = (L2ModificationInstruction.PushHeaderInstructions) l2m; return factory.actions().pushMpls(EthType.of(pushHeaderInstructions .ethernetType().toShort())); case MPLS_POP: L2ModificationInstruction.PushHeaderInstructions popHeaderInstructions = (L2ModificationInstruction.PushHeaderInstructions) l2m; return factory.actions().popMpls(EthType.of(popHeaderInstructions .ethernetType().toShort())); case MPLS_LABEL:
case POP_MPLS: OFActionPopMpls popMpls = (OFActionPopMpls) act; builder.popMpls(new EthType(popMpls.getEthertype().getValue())); break; case PUSH_MPLS:
int ethType = match.get(MatchField.ETH_TYPE).getValue(); builder.matchEthType((short) ethType); break;
PushHeaderInstructions pushHeaderInstructions = (PushHeaderInstructions) l2m; return factory().actions().pushMpls(EthType.of(pushHeaderInstructions .ethernetType().toShort())); case MPLS_POP: PushHeaderInstructions popHeaderInstructions = (PushHeaderInstructions) l2m; return factory().actions().popMpls(EthType.of(popHeaderInstructions .ethernetType().toShort())); case MPLS_LABEL: PushHeaderInstructions pushVlanInstruction = (PushHeaderInstructions) l2m; return factory().actions().pushVlan( EthType.of(pushVlanInstruction.ethernetType().toShort())); case TUNNEL_ID: ModTunnelIdInstruction tunnelId = (ModTunnelIdInstruction) l2m;
case ETH_TYPE: EthTypeCriterion ethType = (EthTypeCriterion) c; mBuilder.setExact(MatchField.ETH_TYPE, EthType.of(ethType.ethType().toShort())); break; case VLAN_VID: