Mahesh Poojary Huawei | 2a21bed | 2015-10-28 18:36:14 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 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 | */ |
| 16 | package org.onosproject.sfc; |
| 17 | |
| 18 | import org.onosproject.vtnrsc.PortChain; |
| 19 | |
| 20 | /** |
| 21 | * SFC application that applies flows to the device. |
| 22 | */ |
| 23 | public interface SfcService { |
| 24 | /** |
| 25 | * Applies flow classification to OVS. |
| 26 | * |
| 27 | * @param portChain Port-Chain. |
| 28 | */ |
| 29 | void InstallFlowClassification(PortChain portChain); |
| 30 | |
| 31 | |
| 32 | /** |
| 33 | * Remove flow classification from OVS. |
| 34 | * |
| 35 | * @param portChain Port-Chain. |
| 36 | */ |
| 37 | void UnInstallFlowClassification(PortChain portChain); |
| 38 | |
| 39 | /** |
| 40 | * Applies Service Function chain to OVS. |
| 41 | * |
| 42 | * @param portChain Port-Chain. |
| 43 | */ |
| 44 | void InstallServiceFunctionChain(PortChain portChain); |
| 45 | |
| 46 | /** |
| 47 | * Remove Service Function chain from OVS. |
| 48 | * |
| 49 | * @param portChain Port-Chain. |
| 50 | */ |
| 51 | void UnInstallServiceFunctionChain(PortChain portChain); |
| 52 | } |