2 * Copyright (c) 2015 Red Hat, 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
8 package org.opendaylight.ovsdb.openstack.netvirt.api;
10 import java.util.List;
13 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;
14 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
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.
20 * @author Flavio Fernandes (ffernand@redhat.com)
21 * @author Sam Hague (shague@redhat.com)
23 public interface NodeCacheManager {
24 public void nodeAdded(Node node);
25 public void nodeRemoved(Node node);
26 public List<Node> getNodes();
27 public Map<NodeId, Node> getOvsdbNodes();
28 public List<Node> getBridgeNodes();