7988a88790b2bdc4bae37d5d271e978cf63f34b9
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / device / DeviceInfo.java
1 /*
2  * Copyright (c) 2015 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.api.openflow.device;
10
11 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpAddress;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.NodeKey;
15 import org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier;
16
17 import java.math.BigInteger;
18
19 /**
20  * API defining basic device information
21  */
22 public interface DeviceInfo {
23
24     /**
25      * @return id of encapsulated node
26      */
27     NodeId getNodeId();
28
29     /**
30      * @return {@link Node} instance identifier
31      */
32     KeyedInstanceIdentifier<Node, NodeKey> getNodeInstanceIdentifier();
33
34     /**
35      * @return version
36      */
37     Short getVersion();
38
39     /**
40      * @return datapathId
41      */
42     BigInteger getDatapathId();
43
44 }