2 * Copyright (c) 2014 NEC Corporation
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this
7 * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
10 package org.opendaylight.vtn.manager.internal.cluster;
12 import org.opendaylight.vtn.manager.VTNException;
13 import org.opendaylight.vtn.manager.flow.action.SetTpSrcAction;
16 * Implementation of flow action that modifies source port number in
20 * Although this class is public to other packages, this class does not
21 * provide any API. Applications other than VTN Manager must not use this
25 public final class SetTpSrcActionImpl extends TpPortActionImpl {
27 * Version number for serialization.
29 private static final long serialVersionUID = 644126347054787614L;
32 * Construct a new instance.
34 * @param act A {@link SetTpSrcAction} instance.
35 * @throws VTNException
36 * {@code act} contains invalid value.
38 public SetTpSrcActionImpl(SetTpSrcAction act) throws VTNException {
48 public SetTpSrcAction getFlowAction() {
49 return new SetTpSrcAction(getPort());