Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 1 | /* |
Brian O'Connor | 0a4e674 | 2016-09-15 23:03:10 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Laboratory |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 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 | */ |
Phaneendra Manda | 8db7d09 | 2016-06-04 00:17:24 +0530 | [diff] [blame] | 26 | public interface SfcFlowRuleInstallerService { |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 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 |
Phaneendra Manda | b8889b8 | 2016-03-04 14:13:10 +0530 | [diff] [blame] | 33 | * @return connectPoint the network identifier |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 34 | */ |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 35 | ConnectPoint installFlowClassifier(PortChain portChain, NshServicePathId nshSpiId); |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 36 | |
| 37 | /** |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 38 | * Uninstall flow classifier. |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 39 | * |
| 40 | * @param portChain port-chain |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 41 | * @param nshSpiId service path index identifier |
Phaneendra Manda | b8889b8 | 2016-03-04 14:13:10 +0530 | [diff] [blame] | 42 | * @return connectPoint the network identifier |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 43 | */ |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 44 | ConnectPoint unInstallFlowClassifier(PortChain portChain, NshServicePathId nshSpiId); |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 45 | |
| 46 | /** |
Phaneendra Manda | 8db7d09 | 2016-06-04 00:17:24 +0530 | [diff] [blame] | 47 | * Install load balanced flow rules. |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 48 | * |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 49 | * @param portChain port-chain |
| 50 | * @param fiveTuple five tuple packet information |
| 51 | * @param nshSpiId service path index identifier |
Phaneendra Manda | b8889b8 | 2016-03-04 14:13:10 +0530 | [diff] [blame] | 52 | * @return connectPoint the network identifier |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 53 | */ |
Phaneendra Manda | 8db7d09 | 2016-06-04 00:17:24 +0530 | [diff] [blame] | 54 | ConnectPoint installLoadBalancedFlowRules(PortChain portChain, FiveTuple fiveTuple, |
| 55 | NshServicePathId nshSpiId); |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 56 | |
| 57 | /** |
Phaneendra Manda | 8db7d09 | 2016-06-04 00:17:24 +0530 | [diff] [blame] | 58 | * Uninstall load balanced flow rules. |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 59 | * |
| 60 | * @param portChain port-chain |
| 61 | * @param fiveTuple five tuple packet information |
| 62 | * @param nshSpiId service path index identifier |
Phaneendra Manda | b8889b8 | 2016-03-04 14:13:10 +0530 | [diff] [blame] | 63 | * @return connectPoint the network identifier |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 64 | */ |
Phaneendra Manda | 8db7d09 | 2016-06-04 00:17:24 +0530 | [diff] [blame] | 65 | ConnectPoint unInstallLoadBalancedFlowRules(PortChain portChain, FiveTuple fiveTuple, |
| 66 | NshServicePathId nshSpiId); |
Phaneendra Manda | b212bc9 | 2016-07-08 16:50:11 +0530 | [diff] [blame] | 67 | |
| 68 | /** |
| 69 | * Uninstall load balanced classifier rules. |
| 70 | * |
| 71 | * @param portChain port-chain |
| 72 | * @param fiveTuple five tuple packet information |
| 73 | * @param nshSpiId service path index identifier |
| 74 | * @return connectPoint the network identifier |
| 75 | */ |
| 76 | ConnectPoint unInstallLoadBalancedClassifierRules(PortChain portChain, FiveTuple fiveTuple, |
| 77 | NshServicePathId nshSpiId); |
Bharat Saraswal | 0fa12e9 | 2015-12-04 02:58:01 +0530 | [diff] [blame] | 78 | } |