Bharat saraswal
Committed by Gerrit Code Review

[ONOS-3119] Flow classification rules installer for SFC.

Change-Id: Ife696b1deb8c6b71a73e65bfdaf6639ec092013b
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.installer;
17 +
18 +import org.onosproject.core.ApplicationId;
19 +import org.onosproject.net.flowobjective.Objective;
20 +import org.onosproject.vtnrsc.FlowClassifier;
21 +import org.onosproject.vtnrsc.PortPair;
22 +
23 +/**
24 + * Abstraction of an entity which installs flow classification rules in ovs.
25 + */
26 +public 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 +}