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 | |
Andrea Campanella | cc2424a | 2018-03-07 14:27:54 -0800 | [diff] [blame] | 19 | import com.google.common.collect.ImmutableList; |
Jonathan Hart | 1ad75f2 | 2016-04-13 21:24:13 -0700 | [diff] [blame] | 20 | import org.onlab.packet.IpAddress; |
Andrea Campanella | cc2424a | 2018-03-07 14:27:54 -0800 | [diff] [blame] | 21 | import org.onlab.packet.IpPrefix; |
Jonathan Hart | 1ad75f2 | 2016-04-13 21:24:13 -0700 | [diff] [blame] | 22 | |
| 23 | import java.util.Collection; |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 24 | import java.util.Optional; |
Jonathan Hart | 1ad75f2 | 2016-04-13 21:24:13 -0700 | [diff] [blame] | 25 | |
| 26 | /** |
| 27 | * Adapter class for the route service. |
| 28 | */ |
| 29 | public class RouteServiceAdapter implements RouteAdminService { |
| 30 | @Override |
| 31 | public void update(Collection<Route> routes) { |
| 32 | |
| 33 | } |
| 34 | |
| 35 | @Override |
| 36 | public void withdraw(Collection<Route> routes) { |
| 37 | |
| 38 | } |
| 39 | |
| 40 | @Override |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 41 | public Collection<RouteInfo> getRoutes(RouteTableId id) { |
| 42 | return null; |
| 43 | } |
| 44 | |
| 45 | @Override |
Charles Chan | 11d4dc5 | 2019-05-03 13:19:49 -0700 | [diff] [blame] | 46 | public Collection<ResolvedRoute> getResolvedRoutes(RouteTableId id) { |
| 47 | return null; |
| 48 | } |
| 49 | |
| 50 | @Override |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 51 | public Collection<RouteTableId> getRouteTables() { |
| 52 | return null; |
| 53 | } |
| 54 | |
| 55 | @Override |
Jonathan Hart | 1ad75f2 | 2016-04-13 21:24:13 -0700 | [diff] [blame] | 56 | public Route longestPrefixMatch(IpAddress ip) { |
| 57 | return null; |
| 58 | } |
| 59 | |
| 60 | @Override |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 61 | public Optional<ResolvedRoute> longestPrefixLookup(IpAddress ip) { |
| 62 | return null; |
| 63 | } |
| 64 | |
| 65 | @Override |
Andrea Campanella | cc2424a | 2018-03-07 14:27:54 -0800 | [diff] [blame] | 66 | public Collection<ResolvedRoute> getAllResolvedRoutes(IpPrefix prefix) { |
| 67 | return ImmutableList.of(); |
| 68 | } |
| 69 | |
| 70 | @Override |
Jonathan Hart | 1ad75f2 | 2016-04-13 21:24:13 -0700 | [diff] [blame] | 71 | public void addListener(RouteListener listener) { |
| 72 | |
| 73 | } |
| 74 | |
| 75 | @Override |
| 76 | public void removeListener(RouteListener listener) { |
| 77 | |
| 78 | } |
| 79 | } |