Merge remote-tracking branch 'origin/master' into merge-branch
[netvirt.git] / neutron / src / main / java / org / opendaylight / ovsdb / neutron / provider / NetworkProvider.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.neutron.provider;
12
13 import org.opendaylight.controller.networkconfig.neutron.NeutronNetwork;
14 import org.opendaylight.controller.sal.core.Node;
15 import org.opendaylight.controller.sal.utils.Status;
16 import org.opendaylight.ovsdb.lib.table.Interface;
17
18 public interface NetworkProvider {
19
20     public static final int LLDP_PRIORITY = 1000;
21     public static final int NORMAL_PRIORITY = 0;
22
23     public boolean hasPerTenantTunneling();
24     public Status handleInterfaceUpdate(String tunnelType, String tunnelKey);
25     public Status handleInterfaceUpdate(NeutronNetwork network, Node source, Interface intf);
26     public Status handleInterfaceDelete(String tunnelType, NeutronNetwork network, Node source, Interface intf, boolean isLastInstanceOnNode);
27     /*
28      * Initialize the Flow rules given the OVSDB node.
29      * This method provides a set of common functionalities to initialize the Flow rules of an OVSDB node
30      * that are Openflow Version specific. Hence we have this method in addition to the following
31      * Openflow Node specific initialization method.
32      */
33     public void initializeFlowRules(Node node);
34
35     /*
36      * Initialize the Flow rules given the Openflow node
37      */
38     public void initializeOFFlowRules(Node openflowNode);
39 }