Provide FlowCapableNodeDataChangeListener to openstack.netvirt via NodeCacheManager
[ovsdb.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / api / NodeCacheManager.java
1 /*
2  * Copyright (C) 2015 Red Hat, Inc.
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  *  Authors : Flavio Fernandes
9  */
10 package org.opendaylight.ovsdb.openstack.netvirt.api;
11
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node;
13
14 import java.util.List;
15
16 /**
17  * This interface is used to cache ids of nodes that are needed by net-virt.
18  * The nodes are added and removed by an external listener.
19  */
20 public interface NodeCacheManager {
21     public void nodeAdded(String nodeIdentifier);
22     public void nodeRemoved(String nodeIdentifier);
23
24     public List<Node> getNodes();
25 }