Jian Li | 7ccc3a8 | 2016-12-09 01:30:56 +0900 | [diff] [blame^] | 1 | /* |
| 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 | package org.onosproject.lisp.ctl; |
| 17 | |
| 18 | import io.netty.channel.Channel; |
| 19 | import org.onlab.packet.IpAddress; |
| 20 | import org.onosproject.lisp.msg.protocols.LispMessage; |
| 21 | import org.onosproject.net.Device; |
| 22 | |
| 23 | /** |
| 24 | * Test adapter for the LISP router interface. |
| 25 | */ |
| 26 | public 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 | } |
| 66 | } |