blob: d6570e8c7c3fe65e47027b08d12868f1edf1fc92 [file] [log] [blame]
Jian Li7ccc3a82016-12-09 01:30:56 +09001/*
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 */
16package org.onosproject.lisp.ctl;
17
18import io.netty.channel.Channel;
19import org.onlab.packet.IpAddress;
20import org.onosproject.lisp.msg.protocols.LispMessage;
21import org.onosproject.net.Device;
22
23/**
24 * Test adapter for the LISP router interface.
25 */
26public class LispRouterAdapter implements LispRouter {
27 @Override
28 public void sendMessage(LispMessage msg) {
29
30 }
31
32 @Override
33 public void handleMessage(LispMessage msg) {
34
35 }
36
37 @Override
38 public Device.Type deviceType() {
39 return null;
40 }
41
42 @Override
43 public String channelId() {
44 return null;
45 }
46
47 @Override
48 public void setChannel(Channel channel) {
49
50 }
51
52 @Override
53 public String stringId() {
54 return null;
55 }
56
57 @Override
58 public IpAddress routerId() {
59 return null;
60 }
61
62 @Override
63 public boolean isConnected() {
64 return false;
65 }
Jian Li834ff722016-12-13 19:43:02 +090066
67 @Override
68 public void setConnected(boolean connected) {
69
70 }
71
72 @Override
73 public boolean isSubscribed() {
74 return false;
75 }
76
77 @Override
78 public void setSubscribed(boolean subscribed) {
79
80 }
81
82 @Override
83 public void setAgent(LispRouterAgent agent) {
84
85 }
86
87 @Override
88 public boolean connectRouter() {
89 return false;
90 }
91
92 @Override
93 public void disconnectRouter() {
94
95 }
Jian Li7ccc3a82016-12-09 01:30:56 +090096}