Add multipart request message serializers
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / protocol / serialization / multipart / tablefeatures / matchfield / IpEcnMatchFieldSerializer.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.tablefeatures.matchfield;
10
11 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
12 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
13
14 public class IpEcnMatchFieldSerializer extends AbstractMatchFieldSerializer {
15     @Override
16     protected int getOxmClassCode() {
17         return OxmMatchConstants.OPENFLOW_BASIC_CLASS;
18     }
19
20     @Override
21     protected int getOxmFieldCode() {
22         return OxmMatchConstants.IP_ECN;
23     }
24
25     @Override
26     protected int getValueLength() {
27         return EncodeConstants.SIZE_OF_BYTE_IN_BYTES;
28     }
29 }