blob: f4c189bfbef73b6ecb94190c2457402ed9f8a3a2 [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
Andrea Campanellacc2424a2018-03-07 14:27:54 -080019import com.google.common.collect.ImmutableList;
Jonathan Hart1ad75f22016-04-13 21:24:13 -070020import org.onlab.packet.IpAddress;
Andrea Campanellacc2424a2018-03-07 14:27:54 -080021import org.onlab.packet.IpPrefix;
Jonathan Hart1ad75f22016-04-13 21:24:13 -070022
23import java.util.Collection;
Jonathan Hart96c146b2017-02-24 16:32:00 -080024import java.util.Optional;
Jonathan Hart1ad75f22016-04-13 21:24:13 -070025
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
Jonathan Hart96c146b2017-02-24 16:32:00 -080041 public Collection<RouteInfo> getRoutes(RouteTableId id) {
42 return null;
43 }
44
45 @Override
Charles Chan11d4dc52019-05-03 13:19:49 -070046 public Collection<ResolvedRoute> getResolvedRoutes(RouteTableId id) {
47 return null;
48 }
49
50 @Override
Jonathan Hart96c146b2017-02-24 16:32:00 -080051 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
Andrea Campanellacc2424a2018-03-07 14:27:54 -080066 public Collection<ResolvedRoute> getAllResolvedRoutes(IpPrefix prefix) {
67 return ImmutableList.of();
68 }
69
70 @Override
Jonathan Hart1ad75f22016-04-13 21:24:13 -070071 public void addListener(RouteListener listener) {
72
73 }
74
75 @Override
76 public void removeListener(RouteListener listener) {
77
78 }
79}