Merge "workaround for sfc"
[netvirt.git] / openstack / net-virt-sfc / impl / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / sfc / INetvirtSfcOF13Provider.java
1 /*
2  * Copyright (c) 2015 Dell, 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.sfc;
10
11 import org.opendaylight.ovsdb.openstack.netvirt.sfc.workaround.services.SfcClassifierService;
12 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev150317.access.lists.Acl;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.netvirt.sfc.classifier.rev150105.classifiers.classifier.Bridges;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.netvirt.sfc.classifier.rev150105.classifiers.classifier.bridges.Bridge;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.netvirt.sfc.classifier.rev150105.classifiers.classifier.sffs.Sff;
16 import org.osgi.framework.ServiceReference;
17
18 /**
19  * Open vSwitch OpenFlow 1.3 Networking Provider for Netvirt SFC
20  * @author Arun Yerra
21  */
22 public interface INetvirtSfcOF13Provider {
23
24     /**
25      * Method installs the OF rules corresponding to rules within ACL
26      * on a given Service Function Forwarder. DataObject which is identified by InstanceIdentifier.
27      *
28      * @param bridge - Service Function Forwarder
29      * @param acl - Access list includes rules that need to be installed in a SFF.
30      */
31     void addClassifierRules(Bridge bridge, Acl acl);
32     void addClassifierRules(Bridges bridges, Acl acl);
33
34     /**
35      * Method removes the OF rules corresponding to rules within ACL
36      * on a given Service Function Forwarder. DataObject which is identified by InstanceIdentifier.
37      *
38      * @param sff - Service Function Forwarder
39      * @param acl - Access list includes rules that need to be installed in a SFF.
40      */
41     void removeClassifierRules(Sff sff, Acl acl);
42
43     void addClassifierRules(Acl acl);
44     void removeClassifierRules(Acl acl);
45
46     void setSfcClassifierService(ISfcClassifierService sfcClassifierService);
47     public void setDependencies(ServiceReference serviceReference);
48 }