0280145c2b8db47a8ab573dcdea6989bfadaf8c1
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / serialization / action / OF10SetTpSrcActionSerializer.java
1 /*\r
2  * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.\r
3  *\r
4  * This program and the accompanying materials are made available under the\r
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
6  * and is available at http://www.eclipse.org/legal/epl-v10.html\r
7  */\r
8 \r
9 package org.opendaylight.openflowjava.protocol.impl.serialization.action;\r
10 \r
11 import org.opendaylight.openflowjava.protocol.impl.util.ActionConstants;\r
12 \r
13 /**\r
14  * @author michal.polkorab\r
15  *\r
16  */\r
17 public class OF10SetTpSrcActionSerializer extends OF10AbstractPortActionSerializer {\r
18 \r
19     @Override\r
20     protected int getType() {\r
21         return ActionConstants.SET_TP_SRC_CODE;\r
22     }\r
23 \r
24     @Override\r
25     protected int getLength() {\r
26         return ActionConstants.GENERAL_ACTION_LENGTH;\r
27     }\r
28 \r
29 }\r