blob: 1d6ec191737b7e67383951dc531df491857c4757 [file] [log] [blame]
Jonathan Hart1ad75f22016-04-13 21:24:13 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Jonathan Hart1ad75f22016-04-13 21:24:13 -07003 *
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 Milkey69ec8712017-08-08 13:00:43 -070017package org.onosproject.routeservice;
Jonathan Hart1ad75f22016-04-13 21:24:13 -070018
19import org.onlab.packet.IpAddress;
20
21import java.util.Collection;
Jonathan Hart96c146b2017-02-24 16:32:00 -080022import java.util.Optional;
Jonathan Hart1ad75f22016-04-13 21:24:13 -070023
24/**
25 * Adapter class for the route service.
26 */
27public 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 Hart96c146b2017-02-24 16:32:00 -080039 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 Hart1ad75f22016-04-13 21:24:13 -070049 public Route longestPrefixMatch(IpAddress ip) {
50 return null;
51 }
52
53 @Override
Jonathan Hart96c146b2017-02-24 16:32:00 -080054 public Optional<ResolvedRoute> longestPrefixLookup(IpAddress ip) {
55 return null;
56 }
57
58 @Override
Jonathan Hart1ad75f22016-04-13 21:24:13 -070059 public void addListener(RouteListener listener) {
60
61 }
62
63 @Override
64 public void removeListener(RouteListener listener) {
65
66 }
67}