2 * Copyright (c) 2014, 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
9 package org.opendaylight.ovsdb.openstack.netvirt.api;
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;
17 * The NetworkingProvider interface is implemented by Neutron Networking Providers
19 public interface NetworkingProvider {
22 * Returns the name of the NetworkingProvider
27 * Return true if the provider supports Network Service Instances
29 boolean supportsServices();
32 * Return true if the provider supports per-tenant or "static" tunneling
34 boolean hasPerTenantTunneling();
37 * Handle Interface Update Callback Method
39 boolean handleInterfaceUpdate(NeutronNetwork network, Node source, OvsdbTerminationPointAugmentation intf);
42 * Handle Interface Delete Callback Method
44 boolean handleInterfaceDelete(String tunnelType, NeutronNetwork network, Node source,
45 OvsdbTerminationPointAugmentation intf, boolean isLastInstanceOnNode);
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.
53 void initializeFlowRules(Node node);
56 * Initialize the Flow rules for a given OpenFlow node
58 void initializeOFFlowRules(Node openflowNode);