blob: a13f5c8eeac874434a884dea65d9c0f2f758e3e0 [file] [log] [blame]
Jonathan Hart1ad75f22016-04-13 21:24:13 -07001/*
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.incubator.net.routing;
18
19import org.onlab.packet.IpAddress;
20
21import java.util.Collection;
22import java.util.Map;
Jonathan Hart96c146b2017-02-24 16:32:00 -080023import java.util.Optional;
Jonathan Hart1ad75f22016-04-13 21:24:13 -070024import java.util.Set;
25
26/**
27 * Adapter class for the route service.
28 */
29public 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
41 public Map<RouteTableId, Collection<Route>> getAllRoutes() {
42 return null;
43 }
44
45 @Override
Jonathan Hart96c146b2017-02-24 16:32:00 -080046 public Collection<RouteInfo> getRoutes(RouteTableId id) {
47 return null;
48 }
49
50 @Override
51 public Collection<RouteTableId> getRouteTables() {
52 return null;
53 }
54
55 @Override
Jonathan Hart1ad75f22016-04-13 21:24:13 -070056 public Route longestPrefixMatch(IpAddress ip) {
57 return null;
58 }
59
60 @Override
Jonathan Hart96c146b2017-02-24 16:32:00 -080061 public Optional<ResolvedRoute> longestPrefixLookup(IpAddress ip) {
62 return null;
63 }
64
65 @Override
Jonathan Hart1ad75f22016-04-13 21:24:13 -070066 public Collection<Route> getRoutesForNextHop(IpAddress nextHop) {
67 return null;
68 }
69
70 @Override
71 public Set<NextHop> getNextHops() {
72 return null;
73 }
74
75 @Override
76 public void addListener(RouteListener listener) {
77
78 }
79
80 @Override
81 public void removeListener(RouteListener listener) {
82
83 }
84}