blob: 14af2b832126bbba39cc2e4f4af66f343b9a457f [file] [log] [blame]
alshabib77b88482015-04-07 15:47:50 -07001/*
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.net.flowobjective;
17
18import org.onosproject.net.DeviceId;
19
20import java.util.Collection;
21import java.util.concurrent.Future;
22
23/**
Thomas Vachuskaca88bb72015-04-08 19:38:02 -070024 * Service for programming data plane flow rules in manner independent of
25 * specific device table pipeline configuration.
alshabib77b88482015-04-07 15:47:50 -070026 */
27public interface FlowObjectiveService {
28
Thomas Vachuskaca88bb72015-04-08 19:38:02 -070029 /**
30 * Installs the filtering rules onto the specified device.
31 *
32 * @param deviceId device identifier
33 * @param filteringObjectives the collection of filters
34 * @return a future indicating the success of the operation
35 */
36 Future<Boolean> filter(DeviceId deviceId, Collection<FilteringObjective> filteringObjectives);
alshabib77b88482015-04-07 15:47:50 -070037
Thomas Vachuskaca88bb72015-04-08 19:38:02 -070038 /**
39 * Installs the forwarding rules onto the specified device.
40 *
41 * @param deviceId device identifier
42 * @param forwardingObjectives the collection of forwarding objectives
43 * @return a future indicating the success of the operation
44 */
alshabib77b88482015-04-07 15:47:50 -070045 Future<Boolean> forward(DeviceId deviceId, Collection<ForwardingObjective> forwardingObjectives);
46
Thomas Vachuskaca88bb72015-04-08 19:38:02 -070047 /**
48 * Installs the next hop elements into the specified device.
49 *
50 * @param deviceId device identifier
51 * @param nextObjectives the collection of next objectives
52 * @return a future indicating the success of the operation
53 */
alshabib77b88482015-04-07 15:47:50 -070054 Future<Boolean> next(DeviceId deviceId, Collection<NextObjective> nextObjectives);
55
56}