blob: a2748f5e4b9b9d4237914905efc736105d29b90b [file] [log] [blame]
Mahesh Poojary Huawei2a21bed2015-10-28 18:36:14 +05301/*
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 */
16package org.onosproject.sfc;
17
18import org.onosproject.vtnrsc.PortChain;
19
20/**
21 * SFC application that applies flows to the device.
22 */
23public 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}