switch (action.getType()) { case SET_NW_SRC: if (((SetNwSrc) action).getAddress() instanceof Inet6Address) { return true;
private static SetNwSrcActionCase _toAction(final SetNwSrc sourceAction) { return new SetNwSrcActionCaseBuilder() .setSetNwSrcAction(new SetNwSrcActionBuilder().setAddress(MDFlowMapping.toInetAddress(sourceAction.getAddress())).build()) .build(); }
case SET_NW_SRC: actionMatch.setField(MatchType.NW_SRC, ((SetNwSrc) action) .getAddress()); break; case SET_NW_DST:
OFActionNetworkLayerSource ofAction = new OFActionNetworkLayerSource(); ofAction.setNetworkAddress(NetUtils.byteArray4ToInt(a .getAddress().getAddress())); actionsList.add(ofAction); actionsLength += OFActionNetworkLayerAddress.MINIMUM_LENGTH;