Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 1 | /* |
| 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 Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 16 | package org.onosproject.sfc.installer; |
| 17 | |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 18 | import org.onosproject.net.ConnectPoint; |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 19 | import org.onosproject.net.NshServicePathId; |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 20 | import org.onosproject.vtnrsc.FiveTuple; |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 21 | import org.onosproject.vtnrsc.PortChain; |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 22 | |
| 23 | /** |
| 24 | * Abstraction of an entity which installs flow classification rules in ovs. |
| 25 | */ |
| 26 | public interface FlowClassifierInstallerService { |
| 27 | |
| 28 | /** |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 29 | * Install flow classifier. |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 30 | * |
| 31 | * @param portChain port-chain |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 32 | * @param nshSpiId service path index identifier |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 33 | */ |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 34 | ConnectPoint installFlowClassifier(PortChain portChain, NshServicePathId nshSpiId); |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 35 | |
| 36 | /** |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 37 | * Uninstall flow classifier. |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 38 | * |
| 39 | * @param portChain port-chain |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 40 | * @param nshSpiId service path index identifier |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 41 | */ |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 42 | ConnectPoint unInstallFlowClassifier(PortChain portChain, NshServicePathId nshSpiId); |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 43 | |
| 44 | /** |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 45 | * Install load balanced flow classifier. |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 46 | * |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 47 | * @param portChain port-chain |
| 48 | * @param fiveTuple five tuple packet information |
| 49 | * @param nshSpiId service path index identifier |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 50 | */ |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 51 | 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 Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 63 | } |