blob: 66ff1259d9dbffcd6830397ac1da2967f369aa43 [file] [log] [blame]
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +05303 *
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 */
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053016
Yoonseon Hanfeb95f12016-08-24 16:37:46 -070017package org.onosproject.net.flowobjective;
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053018
Saurav Dasb5c236e2016-06-07 10:08:06 -070019import com.google.common.collect.ImmutableList;
Harshada Chaundkar5a198b02019-07-03 16:27:45 +000020import com.google.common.collect.ImmutableMap;
Daniele Moro06aac702021-07-19 22:39:22 +020021import org.onosproject.core.ApplicationId;
Yoonseon Hanfeb95f12016-08-24 16:37:46 -070022import org.onosproject.net.DeviceId;
Harshada Chaundkar5a198b02019-07-03 16:27:45 +000023import org.apache.commons.lang3.tuple.Pair;
24import java.util.Map;
Yoonseon Hanfeb95f12016-08-24 16:37:46 -070025
26import java.util.List;
Saurav Dasb5c236e2016-06-07 10:08:06 -070027
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053028/**
29 * Testing version of implementation on FlowObjectiveService.
30 */
Yoonseon Hanfeb95f12016-08-24 16:37:46 -070031public class FlowObjectiveServiceAdapter implements FlowObjectiveService {
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053032
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053033 private ForwardingObjective forwardingObjective;
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053034 @Override
35 public void filter(DeviceId deviceId, FilteringObjective filteringObjective) {
36
37 }
38
39 @Override
40 public void forward(DeviceId deviceId, ForwardingObjective forwardingObjective) {
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053041 this.forwardingObjective = forwardingObjective;
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053042 }
43
44 @Override
45 public void next(DeviceId deviceId, NextObjective nextObjective) {
46
47 }
48
49 @Override
50 public int allocateNextId() {
51 return 0;
52 }
53
54 @Override
55 public void initPolicy(String policy) {
56
57 }
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053058
59 public ForwardingObjective forwardingObjective() {
60 return forwardingObjective;
61 }
Saurav Das24431192016-03-07 19:13:00 -080062
63 @Override
64 public List<String> getNextMappings() {
Saurav Dasb5c236e2016-06-07 10:08:06 -070065 return ImmutableList.of();
66 }
67
68 @Override
Saurav Das1547b3f2017-05-05 17:01:08 -070069 public List<String> getPendingFlowObjectives() {
70 return ImmutableList.of();
71 }
Harshada Chaundkar5a198b02019-07-03 16:27:45 +000072
73 @Override
Daniele Moro06aac702021-07-19 22:39:22 +020074 public void purgeAll(DeviceId deviceId, ApplicationId appId) {
75
76 }
77
78 @Override
Harshada Chaundkar5a198b02019-07-03 16:27:45 +000079 public Map<Pair<Integer, DeviceId>, List<String>> getNextMappingsChain() {
80 return ImmutableMap.of();
81 }
82
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053083}