blob: ce8644780231e48432454f9da456dbd06cb0db51 [file] [log] [blame]
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +05301/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2016-present Open Networking Laboratory
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 */
16package org.onosproject.sfc.util;
17
Saurav Das24431192016-03-07 19:13:00 -080018import java.util.List;
19
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053020import org.onosproject.net.DeviceId;
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053021import org.onosproject.net.flowobjective.FilteringObjective;
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053022import org.onosproject.net.flowobjective.FlowObjectiveService;
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053023import org.onosproject.net.flowobjective.ForwardingObjective;
24import org.onosproject.net.flowobjective.NextObjective;
25
26/**
27 * Testing version of implementation on FlowObjectiveService.
28 */
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053029public class FlowObjectiveAdapter implements FlowObjectiveService {
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053030
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053031 private ForwardingObjective forwardingObjective;
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053032 @Override
33 public void filter(DeviceId deviceId, FilteringObjective filteringObjective) {
34
35 }
36
37 @Override
38 public void forward(DeviceId deviceId, ForwardingObjective forwardingObjective) {
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053039 this.forwardingObjective = forwardingObjective;
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053040 }
41
42 @Override
43 public void next(DeviceId deviceId, NextObjective nextObjective) {
44
45 }
46
47 @Override
48 public int allocateNextId() {
49 return 0;
50 }
51
52 @Override
53 public void initPolicy(String policy) {
54
55 }
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053056
57 public ForwardingObjective forwardingObjective() {
58 return forwardingObjective;
59 }
Saurav Das24431192016-03-07 19:13:00 -080060
61 @Override
62 public List<String> getNextMappings() {
63 return null;
64 }
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053065}