Merge "Bug5822:Ensuring that the flowId, is unique for a flow in a table"
[openflowplugin.git] / openflowplugin / src / main / java / org / opendaylight / openflowplugin / openflow / md / core / sal / convertor / data / VersionDatapathIdConvertorData.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. 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.openflow.md.core.sal.convertor.data;
10
11 import java.math.BigInteger;
12
13 /**
14  * Convertor data implementation containing Openflow version and datapath ID
15  */
16 public class VersionDatapathIdConvertorData extends VersionConvertorData {
17     private BigInteger datapathId;
18
19     /**
20      * Instantiates a new version datapath id convertor data.
21      *
22      * @param version the version
23      */
24     public VersionDatapathIdConvertorData(short version) {
25         super(version);
26     }
27
28     /**
29      * Gets datapath id.
30      *
31      * @return the datapath id
32      */
33     public BigInteger getDatapathId() {
34         return datapathId;
35     }
36
37     /**
38      * Sets datapath id.
39      *
40      * @param datapathId the datapath id
41      */
42     public void setDatapathId(BigInteger datapathId) {
43         this.datapathId = datapathId;
44     }
45 }