blob: 9a66ffa71aba8a9fbf6db3d7080efeb586b3a382 [file] [log] [blame]
Phaneendra Manda0f21ad62016-02-12 19:32:13 +05301/*
2 * Copyright 2016 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053016package org.onosproject.sfc.installer;
17
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053018import org.onosproject.net.ConnectPoint;
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053019import org.onosproject.net.NshServicePathId;
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053020import org.onosproject.vtnrsc.FiveTuple;
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053021import org.onosproject.vtnrsc.PortChain;
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053022
23/**
24 * Abstraction of an entity which installs flow classification rules in ovs.
25 */
26public interface FlowClassifierInstallerService {
27
28 /**
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053029 * Install flow classifier.
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053030 *
31 * @param portChain port-chain
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053032 * @param nshSpiId service path index identifier
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053033 */
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053034 ConnectPoint installFlowClassifier(PortChain portChain, NshServicePathId nshSpiId);
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053035
36 /**
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053037 * Uninstall flow classifier.
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053038 *
39 * @param portChain port-chain
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053040 * @param nshSpiId service path index identifier
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053041 */
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053042 ConnectPoint unInstallFlowClassifier(PortChain portChain, NshServicePathId nshSpiId);
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053043
44 /**
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053045 * Install load balanced flow classifier.
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053046 *
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053047 * @param portChain port-chain
48 * @param fiveTuple five tuple packet information
49 * @param nshSpiId service path index identifier
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053050 */
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053051 ConnectPoint installLoadBalancedFlowClassifier(PortChain portChain, FiveTuple fiveTuple,
52 NshServicePathId nshSpiId);
53
54 /**
55 * Uninstall load balanced flow classifier.
56 *
57 * @param portChain port-chain
58 * @param fiveTuple five tuple packet information
59 * @param nshSpiId service path index identifier
60 */
61 ConnectPoint unInstallLoadBalancedFlowClassifier(PortChain portChain, FiveTuple fiveTuple,
62 NshServicePathId nshSpiId);
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053063}