public SetVlanId(int vlanId) { type = ActionType.SET_VLAN_ID; this.vlanId = vlanId; checkValue(vlanId); }
actionList.add(new SetVlanId(Short.parseShort(sstr.group(1)))); continue;
private static SetVlanIdActionCase _toAction(final SetVlanId sourceAction) { return new SetVlanIdActionCaseBuilder() .setSetVlanIdAction(new SetVlanIdActionBuilder().setVlanId(new VlanId(sourceAction.getVlanId())).build()) .build(); }
actionList.add(new SetDlType(10)); actionList.add(new SetVlanId(2)); actionList.add(new SetVlanPcp(3)); actionList.add(new SetVlanCfi(1));
} else if (action instanceof SetVlanId) { SetVlanId av = (SetVlanId) action; String outVlanId = String.valueOf(av.getVlanId()); actions.append(action.getType().toString()).append(" = ").append(outVlanId).append("<br>"); } else if (action instanceof SetDlSrc) {
new Object[] { tag, currNode, outPort, nextNode}); actions.add(new SetVlanId(tag)); } else { log.debug("No tag assigned to switch {}", nextNode);
case SET_VLAN_ID: actionMatch.setField(MatchType.DL_VLAN, ((Integer) ((SetVlanId) action).getVlanId()) .shortValue()); break;
Integer vlanIdValue = vlanID.getValue(); if (vlanIdValue != null) { targetAction.add(new SetVlanId(vlanIdValue));
SetVlanId a = (SetVlanId) action; OFActionVirtualLanIdentifier ofAction = new OFActionVirtualLanIdentifier(); ofAction.setVirtualLanIdentifier((short) a.getVlanId()); actionsList.add(ofAction); actionsLength += OFActionVirtualLanIdentifier.MINIMUM_LENGTH;
((OFActionEnqueue) ofAction).getQueueId()); } else if (ofAction instanceof OFActionVirtualLanIdentifier) { salAction = new SetVlanId( ((OFActionVirtualLanIdentifier) ofAction) .getVirtualLanIdentifier());