blob: d38f05edfbcb25d25fbfc6dcabab3e1330932d5c [file] [log] [blame]
Jonathan Hart584ea2d2016-10-11 10:49:16 +02001/*
2 * Copyright 2016-present 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
17package org.onosproject.net.edge;
18
19import org.onosproject.net.ConnectPoint;
20import org.onosproject.net.DeviceId;
21import org.onosproject.net.flow.TrafficTreatment;
22
23import java.nio.ByteBuffer;
24import java.util.Optional;
25
26/**
27 * Adapter for tests involving the edge port service.
28 */
29public class EdgePortServiceAdapter implements EdgePortService {
30 @Override
31 public void addListener(EdgePortListener listener) {
32
33 }
34
35 @Override
36 public void removeListener(EdgePortListener listener) {
37
38 }
39
40 @Override
41 public boolean isEdgePoint(ConnectPoint point) {
42 return false;
43 }
44
45 @Override
46 public Iterable<ConnectPoint> getEdgePoints() {
47 return null;
48 }
49
50 @Override
51 public Iterable<ConnectPoint> getEdgePoints(DeviceId deviceId) {
52 return null;
53 }
54
55 @Override
56 public void emitPacket(ByteBuffer data, Optional<TrafficTreatment> treatment) {
57
58 }
59
60 @Override
61 public void emitPacket(DeviceId deviceId, ByteBuffer data, Optional<TrafficTreatment> treatment) {
62
63 }
64}