actionList.add(new SetDlSrc(HexEncode.bytesFromHexString(sstr.group(1)))); continue;
private static SetDlSrcActionCase _toAction(final SetDlSrc sourceAction) { return new SetDlSrcActionCaseBuilder() .setSetDlSrcAction(new SetDlSrcActionBuilder().setAddress(MDFlowMapping.toMacAddress(sourceAction.getDlAddress())).build()) .build(); }
actionList.add(new SetDlSrc(src)); actionList.add(new SetDlDst(dst)); actionList.add(new SetDlType(10));
} else if (action instanceof SetDlSrc) { SetDlSrc ads = (SetDlSrc) action; actions.append(action.getType().toString()).append(" = ").append(HexEncode.bytesToHexStringFormat(ads.getDlAddress())).append("<br>"); } else if (action instanceof SetDlDst) { SetDlDst add = (SetDlDst) action;
actions.add(new SetDlSrc(destMachineMac));
SetDlSrc a = (SetDlSrc) action; OFActionDataLayerSource ofAction = new OFActionDataLayerSource(); ofAction.setDataLayerAddress(a.getDlAddress()); actionsList.add(ofAction); actionsLength += OFActionDataLayer.MINIMUM_LENGTH;
MacAddress addressL2Src = ((SetDlSrcActionCase) sourceAction).getSetDlSrcAction().getAddress(); if (addressL2Src != null) { targetAction.add(new SetDlSrc(bytesFrom(addressL2Src)));
.getVirtualLanPriorityCodePoint()); } else if (ofAction instanceof OFActionDataLayerSource) { salAction = new SetDlSrc( ((OFActionDataLayerSource) ofAction) .getDataLayerAddress().clone());