BUG 4208 - Unstack and restack existing compute
[netvirt.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / api / NetworkingProvider.java
1 /*
2  * Copyright (c) 2014, 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
9 package org.opendaylight.ovsdb.openstack.netvirt.api;
10
11 import org.opendaylight.neutron.spi.NeutronNetwork;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation;
13 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
14 import org.osgi.framework.ServiceReference;
15
16 /**
17  * The NetworkingProvider interface is implemented by Neutron Networking Providers
18  */
19 public interface NetworkingProvider {
20
21     /**
22      * Returns the name of the NetworkingProvider
23      */
24     String getName();
25
26     /**
27      * Return true if the provider supports Network Service Instances
28      */
29     boolean supportsServices();
30
31     /**
32      * Return true if the provider supports per-tenant or "static" tunneling
33      */
34     boolean hasPerTenantTunneling();
35
36     /**
37      * Handle Interface Update Callback Method
38      */
39     boolean handleInterfaceUpdate(NeutronNetwork network, Node source, OvsdbTerminationPointAugmentation intf);
40
41     /**
42      * Handle Interface Delete Callback Method
43      */
44     boolean handleInterfaceDelete(String tunnelType, NeutronNetwork network, Node source,
45                                   OvsdbTerminationPointAugmentation intf, boolean isLastInstanceOnNode);
46
47     /**
48      * Initialize the Flow rules given the OVSDB node.
49      * This method provides a set of common functionalities to initialize the Flow rules of an OVSDB node
50      * that are Openflow Version specific. Hence we have this method in addition to the following
51      * Openflow Node specific initialization method.
52      */
53     void initializeFlowRules(Node node);
54
55     /**
56      * Initialize the Flow rules for a given OpenFlow node
57      */
58     void initializeOFFlowRules(Node openflowNode);
59 }