Use ByteBuf.readRetainedSlice()
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / protocol / serialization / multipart / tablefeatures / matchfield / MplsBosMatchFieldSerializer.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 package org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.tablefeatures.matchfield;
9
10 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
11
12 public class MplsBosMatchFieldSerializer extends AbstractMatchFieldSerializer {
13     @Override
14     protected int getOxmClassCode() {
15         return OxmMatchConstants.OPENFLOW_BASIC_CLASS;
16     }
17
18     @Override
19     protected int getOxmFieldCode() {
20         return OxmMatchConstants.MPLS_BOS;
21     }
22
23     @Override
24     protected int getValueLength() {
25         return Byte.BYTES;
26     }
27 }