Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Foundation |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +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 | */ |
| 16 | package org.onosproject.sfc.manager; |
| 17 | |
Mahesh Poojary S | c9c10f9 | 2015-11-30 17:18:05 +0530 | [diff] [blame] | 18 | import org.onosproject.vtnrsc.PortPair; |
| 19 | import org.onosproject.vtnrsc.PortPairGroup; |
| 20 | import org.onosproject.vtnrsc.FlowClassifier; |
| 21 | import org.onosproject.vtnrsc.PortChain; |
| 22 | |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 23 | /** |
| 24 | * SFC application that applies flows to the device. |
| 25 | */ |
| 26 | public interface SfcService { |
| 27 | |
| 28 | /** |
| 29 | * When port-pair is created, check whether Forwarding Rule needs to be |
| 30 | * updated in OVS. |
Mahesh Poojary S | c9c10f9 | 2015-11-30 17:18:05 +0530 | [diff] [blame] | 31 | * |
| 32 | * @param portPair port-pair |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 33 | */ |
Mahesh Poojary S | c9c10f9 | 2015-11-30 17:18:05 +0530 | [diff] [blame] | 34 | void onPortPairCreated(PortPair portPair); |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 35 | |
| 36 | /** |
| 37 | * When port-pair is deleted, check whether Forwarding Rule needs to be |
| 38 | * updated in OVS. |
Mahesh Poojary S | c9c10f9 | 2015-11-30 17:18:05 +0530 | [diff] [blame] | 39 | * |
| 40 | * @param portPair port-pair |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 41 | */ |
Mahesh Poojary S | c9c10f9 | 2015-11-30 17:18:05 +0530 | [diff] [blame] | 42 | void onPortPairDeleted(PortPair portPair); |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 43 | |
| 44 | /** |
| 45 | * When port-pair-group is created, check whether Forwarding Rule needs to |
| 46 | * be updated in OVS. |
Mahesh Poojary S | c9c10f9 | 2015-11-30 17:18:05 +0530 | [diff] [blame] | 47 | * |
| 48 | * @param portPairGroup port-pair-group |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 49 | */ |
Mahesh Poojary S | c9c10f9 | 2015-11-30 17:18:05 +0530 | [diff] [blame] | 50 | void onPortPairGroupCreated(PortPairGroup portPairGroup); |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 51 | |
| 52 | /** |
| 53 | * When port-pair-group is deleted, check whether Forwarding Rule needs to |
| 54 | * be updated in OVS. |
Mahesh Poojary S | c9c10f9 | 2015-11-30 17:18:05 +0530 | [diff] [blame] | 55 | * |
| 56 | * @param portPairGroup port-pair-group |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 57 | */ |
Mahesh Poojary S | c9c10f9 | 2015-11-30 17:18:05 +0530 | [diff] [blame] | 58 | void onPortPairGroupDeleted(PortPairGroup portPairGroup); |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 59 | |
| 60 | /** |
| 61 | * When flow-classifier is created, check whether Forwarding Rule needs to |
| 62 | * be updated in OVS. |
Mahesh Poojary S | c9c10f9 | 2015-11-30 17:18:05 +0530 | [diff] [blame] | 63 | * |
| 64 | * @param flowClassifier flow-classifier |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 65 | */ |
Mahesh Poojary S | c9c10f9 | 2015-11-30 17:18:05 +0530 | [diff] [blame] | 66 | void onFlowClassifierCreated(FlowClassifier flowClassifier); |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 67 | |
| 68 | /** |
| 69 | * When flow-classifier is deleted, check whether Forwarding Rule needs to |
| 70 | * be updated in OVS. |
Mahesh Poojary S | c9c10f9 | 2015-11-30 17:18:05 +0530 | [diff] [blame] | 71 | * |
| 72 | * @param flowClassifier flow-classifier |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 73 | */ |
Mahesh Poojary S | c9c10f9 | 2015-11-30 17:18:05 +0530 | [diff] [blame] | 74 | void onFlowClassifierDeleted(FlowClassifier flowClassifier); |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 75 | |
| 76 | /** |
| 77 | * When port-chain is created, check whether Forwarding Rule needs to be |
| 78 | * updated in OVS. |
Mahesh Poojary S | c9c10f9 | 2015-11-30 17:18:05 +0530 | [diff] [blame] | 79 | * |
| 80 | * @param portChain port-chain |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 81 | */ |
Mahesh Poojary S | c9c10f9 | 2015-11-30 17:18:05 +0530 | [diff] [blame] | 82 | void onPortChainCreated(PortChain portChain); |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 83 | |
| 84 | /** |
| 85 | * When port-chain is deleted, check whether Forwarding Rule needs to be |
| 86 | * updated in OVS. |
Mahesh Poojary S | c9c10f9 | 2015-11-30 17:18:05 +0530 | [diff] [blame] | 87 | * |
| 88 | * @param portChain port-chain |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 89 | */ |
Mahesh Poojary S | c9c10f9 | 2015-11-30 17:18:05 +0530 | [diff] [blame] | 90 | void onPortChainDeleted(PortChain portChain); |
Mahesh Poojary S | 335e7c3 | 2015-10-29 10:16:51 +0530 | [diff] [blame] | 91 | } |