Jonathan Hart | 1ad75f2 | 2016-04-13 21:24:13 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Foundation |
Jonathan Hart | 1ad75f2 | 2016-04-13 21:24:13 -0700 | [diff] [blame] | 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 | |
Ray Milkey | 69ec871 | 2017-08-08 13:00:43 -0700 | [diff] [blame] | 17 | package org.onosproject.routeservice; |
Jonathan Hart | 1ad75f2 | 2016-04-13 21:24:13 -0700 | [diff] [blame] | 18 | |
| 19 | import org.onlab.packet.IpAddress; |
| 20 | |
| 21 | import java.util.Collection; |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 22 | import java.util.Optional; |
Jonathan Hart | 1ad75f2 | 2016-04-13 21:24:13 -0700 | [diff] [blame] | 23 | |
| 24 | /** |
| 25 | * Adapter class for the route service. |
| 26 | */ |
| 27 | public class RouteServiceAdapter implements RouteAdminService { |
| 28 | @Override |
| 29 | public void update(Collection<Route> routes) { |
| 30 | |
| 31 | } |
| 32 | |
| 33 | @Override |
| 34 | public void withdraw(Collection<Route> routes) { |
| 35 | |
| 36 | } |
| 37 | |
| 38 | @Override |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 39 | public Collection<RouteInfo> getRoutes(RouteTableId id) { |
| 40 | return null; |
| 41 | } |
| 42 | |
| 43 | @Override |
| 44 | public Collection<RouteTableId> getRouteTables() { |
| 45 | return null; |
| 46 | } |
| 47 | |
| 48 | @Override |
Jonathan Hart | 1ad75f2 | 2016-04-13 21:24:13 -0700 | [diff] [blame] | 49 | public Route longestPrefixMatch(IpAddress ip) { |
| 50 | return null; |
| 51 | } |
| 52 | |
| 53 | @Override |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 54 | public Optional<ResolvedRoute> longestPrefixLookup(IpAddress ip) { |
| 55 | return null; |
| 56 | } |
| 57 | |
| 58 | @Override |
Jonathan Hart | 1ad75f2 | 2016-04-13 21:24:13 -0700 | [diff] [blame] | 59 | public void addListener(RouteListener listener) { |
| 60 | |
| 61 | } |
| 62 | |
| 63 | @Override |
| 64 | public void removeListener(RouteListener listener) { |
| 65 | |
| 66 | } |
| 67 | } |