blob: c5250d723b7a2ff415a4d0e6abcef0a76966e685 [file] [log] [blame]
Yi Tseng7a38f9a2017-06-09 14:36:40 -07001/*
2 * Copyright 2017-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 */
16package org.onosproject.incubator.net.routing;
17
18import org.onlab.packet.IpAddress;
19import org.onlab.packet.IpPrefix;
20
21import java.util.Collection;
22import java.util.Set;
23
24/**
25 * Adapter class for the route store.
26 */
27public class RouteStoreAdapter implements RouteStore {
28 @Override
29 public void updateRoute(Route route) {
30
31 }
32
33 @Override
34 public void removeRoute(Route route) {
35
36 }
37
38 @Override
39 public Set<RouteTableId> getRouteTables() {
40 return null;
41 }
42
43 @Override
44 public Collection<RouteSet> getRoutes(RouteTableId table) {
45 return null;
46 }
47
48 @Override
49 public Collection<Route> getRoutesForNextHop(IpAddress ip) {
50 return null;
51 }
52
53 @Override
54 public RouteSet getRoutes(IpPrefix prefix) {
55 return null;
56 }
57
58 @Override
59 public void setDelegate(RouteStoreDelegate delegate) {
60
61 }
62
63 @Override
64 public void unsetDelegate(RouteStoreDelegate delegate) {
65
66 }
67
68 @Override
69 public boolean hasDelegate() {
70 return false;
71 }
72}