Add support for openflow node callbacks
[ovsdb.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / api / NodeCacheManager.java
1 /*
2  * Copyright (c) 2015 Red Hat, 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 package org.opendaylight.ovsdb.openstack.netvirt.api;
9
10 import java.util.List;
11 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
12
13 /**
14  * This interface is used to cache ids of nodes that are needed by net-virt.
15  * The nodes are added and removed by an external listener.
16  *
17  * @author Flavio Fernandes (ffernand@redhat.com)
18  * @author Sam Hague (shague@redhat.com)
19  */
20 public interface NodeCacheManager {
21     public void nodeAdded(Node node);
22     public void nodeRemoved(Node node);
23     public List<Node> getNodes();
24 }