blob: f05a21dc9d1388798b30a030a8d9067ed6a2c127 [file] [log] [blame]
Bharat saraswalfdee6ff2015-11-18 16:47:39 +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.installer;
17
18import org.onosproject.core.ApplicationId;
19import org.onosproject.net.flowobjective.Objective;
20import org.onosproject.vtnrsc.FlowClassifier;
21import org.onosproject.vtnrsc.PortPair;
22
23/**
24 * Abstraction of an entity which installs flow classification rules in ovs.
25 */
26public interface FlowClassifierInstaller {
27
28 /**
29 * Install flow classifier rules.
30 *
31 * @param flowClassifier Flow Classifier
32 * @param portPair Port pair
33 */
34 void install(FlowClassifier flowClassifier, PortPair portPair);
35
36 /**
37 * Programs forwarding object for flow classifier.
38 *
39 * @param flowClassifier flow classifier
40 * @param portPair port pair
41 * @param appid application id
42 * @param type forwarding objective operation type
43 */
44 void programFlowClassification(FlowClassifier flowClassifier, PortPair portPair, ApplicationId appid,
45 Objective.Operation type);
46}