2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.openflowplugin.api.openflow.device;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.NodeKey;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetFeaturesOutput;
15 import org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier;
18 * Created by Martin Bobak <mbobak@cisco.com> on 25.2.2015.
20 public interface DeviceState {
23 * @return id of encapsulated node
28 * @return {@link Node} instance identifier
30 KeyedInstanceIdentifier<Node, NodeKey> getNodeInstanceIdentifier();
33 * @return the features of corresponding switch
35 GetFeaturesOutput getFeatures();
38 * @return true if this session is valid
43 * @param valid the valid to set
45 void setValid(boolean valid);
48 * Return node current OF protocol version
55 * Return true if we have relevant meter information
59 boolean isMetersAvailable();
62 * We already have information about meters
64 void meterIsAvailable();
67 * Return true if we have relevant group information
71 boolean isGroupAvailable();
74 * We already have information about groups
76 void groupIsAvailable();