public OutputActionCaseBuilder(OutputActionCase base) { this._outputAction = base.getOutputAction(); if (base instanceof OutputActionCaseImpl) { OutputActionCaseImpl _impl = (OutputActionCaseImpl) base; this.augmentation = new HashMap<>(_impl.augmentation); } }
private void processOutputAction(OutputActionCase action, FlowTableLookUpResult result) { Uri nodeConnector = action.getOutputAction().getOutputNodeConnector(); if (nodeConnector.getValue().matches("\\d+")) { result.outputNodeConnectors.add(nodeConnector); } else if (nodeConnector.getValue().matches("CONTROLLER")) { result.sendToController = true; } }
if (other.getOutputAction() != null) { return false; } else if(!_outputAction.equals(other.getOutputAction())) { return false;
/** * {@inheritDoc} */ @Override public String getDescription(Action act) throws RpcException { OutputActionCase ac = cast(OutputActionCase.class, act); OutputAction action = ac.getOutputAction(); String port = null; Integer len = null; if (action != null) { len = action.getMaxLength(); Uri uri = action.getOutputNodeConnector(); if (uri != null) { port = uri.getValue(); } } return new StringBuilder("OUTPUT(port="). append(port).append(", len=").append(len).append(')').toString(); }
/** * Return the egress switch port specified by the given action. * * @param action An {@link OutputActionCase} instance. * @return A MD-SAL node connector identifier which specifies the output * switch port. {@code null} if not found. */ private static String getOutputPort(OutputActionCase action) { OutputAction output = action.getOutputAction(); if (output != null) { Uri uri = output.getOutputNodeConnector(); if (uri != null) { return uri.getValue(); } } return null; }
/** * Determine whether the given action list contains only one output action * that transmits packets to the given port or not. * * @param actions An action list. * @param pid The target port identifier. * @return {@code true} if the given action list contains only one output * action that specifies the given port. * Otherwise {@code false}. */ public static boolean isOutput(List<Action> actions, String pid) { boolean result = false; if (actions != null && actions.size() == 1) { Action act = actions.get(0); org.opendaylight.yang.gen.v1.urn.opendaylight.action.types. rev131112.action.Action a = act.getAction(); if (a instanceof OutputActionCase) { OutputActionCase outCase = (OutputActionCase)a; OutputAction out = outCase.getOutputAction(); if (out != null) { Uri uri = out.getOutputNodeConnector(); result = (uri != null && pid.equals(uri.getValue())); } } } return result; }
if (a instanceof OutputActionCase) { OutputActionCase outCase = (OutputActionCase)a; OutputAction out = outCase.getOutputAction(); if (out == null) { continue;
listActionInfo .add(new ActionInfo(ActionType.output, new String[] { ((OutputActionCase) actionClass) .getOutputAction().getOutputNodeConnector().getValue() }, pos++)); } else if (actionClass instanceof PushVlanActionCase) { listActionInfo.add(new ActionInfo(ActionType.push_vlan, new String[] {}, pos++));
.equals("org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.OutputActionCase")) { String nodeConnectorUri = ((OutputActionCase) (action.getAction())) .getOutputAction().getOutputNodeConnector().getValue();
if (actionClass instanceof OutputActionCase) { listActionInfo.add(new ActionInfo(ActionType.output, new String[] {((OutputActionCase)actionClass).getOutputAction() .getOutputNodeConnector().getValue()})); } else if (actionClass instanceof PushVlanActionCase) {
@Nonnull @Override public Optional<Action> process(@Nonnull final OutputActionCase source, final ActionConvertorData data, ConvertorExecutor convertorExecutor) { final OutputAction outputAction = source.getOutputAction(); final OutputActionBuilder outputBuilder = new OutputActionBuilder(); if (outputAction.getMaxLength() != null) { outputBuilder.setMaxLength(outputAction.getMaxLength()); } else { outputBuilder.setMaxLength(0); } final OpenflowVersion version = OpenflowVersion.get(data.getVersion()); final String nodeConnectorId = outputAction.getOutputNodeConnector().getValue(); final Long portNumber = InventoryDataServiceUtil.portNumberfromNodeConnectorId(version, nodeConnectorId); if (OpenflowPortsUtil.checkPortValidity(version, portNumber)) { outputBuilder.setPort(new PortNumber(portNumber)); } else { LOG.error("Invalid Port specified {} for Output Action for OF version: {}", portNumber, version); } return Optional.of(new ActionBuilder() .setActionChoice(new OutputActionCaseBuilder() .setOutputAction(outputBuilder.build()) .build()) .build()); } }
if (action.getAction() instanceof OutputActionCase) { OutputActionCase opAction = (OutputActionCase) action.getAction(); if (opAction.getOutputAction().getOutputNodeConnector().equals(ethNodeConnectorUri)) { actionList.add(action); } else if (!opAction.getOutputAction().getOutputNodeConnector().equals(localNodeConnectorUri)) { actionList.add( new ActionBuilder()
if (action.getAction() instanceof OutputActionCase) { OutputActionCase opAction = (OutputActionCase) action.getAction(); if (opAction.getOutputAction().getOutputNodeConnector().equals(new Uri(ncid))) {
OutputActionCase opAction = (OutputActionCase)action.getAction(); if (opAction.getOutputAction().getOutputNodeConnector().equals(new Uri(ncid))) { addNew = false; break;
if (action.getAction() instanceof OutputActionCase) { OutputActionCase opAction = (OutputActionCase) action.getAction(); if (opAction.getOutputAction().getOutputNodeConnector().equals(ncidUri)) {
if (action.getAction() instanceof OutputActionCase) { OutputActionCase opAction = (OutputActionCase)action.getAction(); origncId = (NodeConnectorId) opAction.getOutputAction().getOutputNodeConnector(); if (opAction.getOutputAction().getOutputNodeConnector().equals(ncId)) { LOG.info("Port is removed"); toRemove=true;
if (action.getAction() instanceof OutputActionCase) { OutputActionCase opAction = (OutputActionCase)action.getAction(); origncId = (NodeConnectorId) opAction.getOutputAction().getOutputNodeConnector(); if (opAction.getOutputAction().getOutputNodeConnector().equals(new Uri(ncId))) { LOG.warn("returning null here at 1"); return(null);
if (action.getAction() instanceof OutputActionCase) { OutputActionCase opAction = (OutputActionCase)action.getAction(); if (opAction.getOutputAction().getOutputNodeConnector().equals(new Uri(ncid))) {
OutputActionCase opAction = (OutputActionCase)action.getAction(); if (opAction.getOutputAction().getOutputNodeConnector().equals(new Uri(ncid))) { addNew = false; break;
if (action.getAction() instanceof OutputActionCase) { OutputActionCase opAction = (OutputActionCase) action.getAction(); if (opAction.getOutputAction().getOutputNodeConnector().equals(nodeConnectorUri)) { addNew = false; break;