blob: 58e59be9d623fe57cd019ac2bc44ba77fa6076a0 [file] [log] [blame]
Phaneendra Manda0f21ad62016-02-12 19:32:13 +05301/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Phaneendra Manda0f21ad62016-02-12 19:32:13 +05303 *
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
Phaneendra Mandab8889b82016-03-04 14:13:10 +053033 * @return connectPoint the network identifier
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053034 */
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053035 ConnectPoint installFlowClassifier(PortChain portChain, NshServicePathId nshSpiId);
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053036
37 /**
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053038 * Uninstall flow classifier.
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053039 *
40 * @param portChain port-chain
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053041 * @param nshSpiId service path index identifier
Phaneendra Mandab8889b82016-03-04 14:13:10 +053042 * @return connectPoint the network identifier
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053043 */
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053044 ConnectPoint unInstallFlowClassifier(PortChain portChain, NshServicePathId nshSpiId);
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053045
46 /**
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053047 * Install load balanced flow classifier.
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053048 *
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053049 * @param portChain port-chain
50 * @param fiveTuple five tuple packet information
51 * @param nshSpiId service path index identifier
Phaneendra Mandab8889b82016-03-04 14:13:10 +053052 * @return connectPoint the network identifier
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053053 */
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053054 ConnectPoint installLoadBalancedFlowClassifier(PortChain portChain, FiveTuple fiveTuple,
55 NshServicePathId nshSpiId);
56
57 /**
58 * Uninstall load balanced flow classifier.
59 *
60 * @param portChain port-chain
61 * @param fiveTuple five tuple packet information
62 * @param nshSpiId service path index identifier
Phaneendra Mandab8889b82016-03-04 14:13:10 +053063 * @return connectPoint the network identifier
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053064 */
65 ConnectPoint unInstallLoadBalancedFlowClassifier(PortChain portChain, FiveTuple fiveTuple,
66 NshServicePathId nshSpiId);
Bharat Saraswal0fa12e92015-12-04 02:58:01 +053067}