Use Topology Node in place of Inventory Node
[ovsdb.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / api / NetworkingProvider.java
1 /*
2  * Copyright (C) 2014 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 : Dave Tucker
9  */
10
11 package org.opendaylight.ovsdb.openstack.netvirt.api;
12
13 import org.opendaylight.neutron.spi.NeutronNetwork;
14 import org.opendaylight.ovsdb.schema.openvswitch.Interface;
15 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
16
17 /**
18  * The NetworkingProvider interface is implemented by Neutron Networking Providers
19  */
20 public interface NetworkingProvider {
21
22     /**
23      * Returns the name of the NetworkingProvider
24      */
25     public String getName();
26
27     /**
28      * Return true if the provider supports Network Service Instances
29      */
30     public boolean supportsServices();
31
32     /**
33      * Return true if the provider supports per-tenant or "static" tunneling
34      */
35     public boolean hasPerTenantTunneling();
36
37     /**
38      * Handle Interface Update Callback Method
39      */
40     public Status handleInterfaceUpdate(String tunnelType, String tunnelKey);
41
42     /**
43      * Handle Interface Update Callback Method
44      */
45     public Status handleInterfaceUpdate(NeutronNetwork network, Node source, Interface intf);
46
47     /**
48      * Handle Interface Delete Callback Method
49      */
50     public Status handleInterfaceDelete(String tunnelType, NeutronNetwork network, Node source, Interface intf, boolean isLastInstanceOnNode);
51
52     /**
53      * Initialize the Flow rules given the OVSDB node.
54      * This method provides a set of common functionalities to initialize the Flow rules of an OVSDB node
55      * that are Openflow Version specific. Hence we have this method in addition to the following
56      * Openflow Node specific initialization method.
57      */
58     public void initializeFlowRules(Node node);
59
60     /**
61      * Initialize the Flow rules for a given OpenFlow node
62      */
63     public void initializeOFFlowRules(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node openflowNode);
64
65     /**
66      * Generate event to announce flow capable node.
67      * @param dpid the data path id of the node
68      * @param action the type of update for the given dpid
69      */
70     public void notifyFlowCapableNodeEvent(Long dpid, Action action);
71 }