Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2017-present Open Networking Foundation |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [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.store; |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 18 | |
Jordan Halterman | 3b13737 | 2018-04-30 14:42:41 -0700 | [diff] [blame] | 19 | import java.util.Collection; |
| 20 | import java.util.Collections; |
pier | 8a86db2 | 2019-10-16 16:58:20 +0200 | [diff] [blame] | 21 | import java.util.HashMap; |
Jordan Halterman | 3b13737 | 2018-04-30 14:42:41 -0700 | [diff] [blame] | 22 | import java.util.Map; |
pier | 594843a | 2018-12-21 22:02:25 +0100 | [diff] [blame] | 23 | import java.util.Objects; |
Jordan Halterman | 3b13737 | 2018-04-30 14:42:41 -0700 | [diff] [blame] | 24 | import java.util.concurrent.ExecutorService; |
| 25 | import java.util.function.Consumer; |
| 26 | import java.util.stream.Collectors; |
| 27 | |
Daniel Ginsburg | 83b7645 | 2018-06-09 01:43:59 +0300 | [diff] [blame] | 28 | import com.google.common.collect.Sets; |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 29 | import org.onlab.packet.IpAddress; |
| 30 | import org.onlab.packet.IpPrefix; |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 31 | import org.onosproject.cluster.NodeId; |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 32 | import org.onlab.util.KryoNamespace; |
Ray Milkey | 69ec871 | 2017-08-08 13:00:43 -0700 | [diff] [blame] | 33 | import org.onosproject.routeservice.InternalRouteEvent; |
| 34 | import org.onosproject.routeservice.Route; |
| 35 | import org.onosproject.routeservice.RouteSet; |
| 36 | import org.onosproject.routeservice.RouteStoreDelegate; |
| 37 | import org.onosproject.routeservice.RouteTableId; |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 38 | import org.onosproject.store.serializers.KryoNamespaces; |
Jordan Halterman | 3b13737 | 2018-04-30 14:42:41 -0700 | [diff] [blame] | 39 | import org.onosproject.store.service.ConsistentMultimap; |
Jonathan Hart | 1f67d28 | 2017-05-25 14:23:01 -0700 | [diff] [blame] | 40 | import org.onosproject.store.service.DistributedPrimitive; |
Jordan Halterman | 3b13737 | 2018-04-30 14:42:41 -0700 | [diff] [blame] | 41 | import org.onosproject.store.service.MultimapEvent; |
| 42 | import org.onosproject.store.service.MultimapEventListener; |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 43 | import org.onosproject.store.service.Serializer; |
| 44 | import org.onosproject.store.service.StorageService; |
| 45 | import org.onosproject.store.service.Versioned; |
| 46 | |
pier | 8a86db2 | 2019-10-16 16:58:20 +0200 | [diff] [blame] | 47 | |
pier | 594843a | 2018-12-21 22:02:25 +0100 | [diff] [blame] | 48 | import static com.google.common.base.MoreObjects.toStringHelper; |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 49 | import static com.google.common.base.Preconditions.checkNotNull; |
| 50 | |
| 51 | /** |
| 52 | * Default implementation of a route table based on a consistent map. |
| 53 | */ |
| 54 | public class DefaultRouteTable implements RouteTable { |
| 55 | |
| 56 | private final RouteTableId id; |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 57 | |
| 58 | // The route map stores RawRoute instead of Route to translate the polymorphic IpPrefix and IpAddress types |
| 59 | // into monomorphic types (specifically String). Using strings in the stored RawRoute is necessary to ensure |
| 60 | // the serialized bytes are consistent whether e.g. IpAddress or Ip4Address is used when storing a route. |
| 61 | private final ConsistentMultimap<String, RawRoute> routes; |
| 62 | |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 63 | private final RouteStoreDelegate delegate; |
Jonathan Hart | 1f67d28 | 2017-05-25 14:23:01 -0700 | [diff] [blame] | 64 | private final ExecutorService executor; |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 65 | private final RouteTableListener listener = new RouteTableListener(); |
| 66 | |
Jonathan Hart | 1f67d28 | 2017-05-25 14:23:01 -0700 | [diff] [blame] | 67 | private final Consumer<DistributedPrimitive.Status> statusChangeListener; |
| 68 | |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 69 | /** |
| 70 | * Creates a new route table. |
| 71 | * |
| 72 | * @param id route table ID |
| 73 | * @param delegate route store delegate to notify of events |
| 74 | * @param storageService storage service |
Jonathan Hart | 1f67d28 | 2017-05-25 14:23:01 -0700 | [diff] [blame] | 75 | * @param executor executor service |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 76 | */ |
| 77 | public DefaultRouteTable(RouteTableId id, RouteStoreDelegate delegate, |
Jonathan Hart | 1f67d28 | 2017-05-25 14:23:01 -0700 | [diff] [blame] | 78 | StorageService storageService, ExecutorService executor) { |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 79 | this.delegate = checkNotNull(delegate); |
| 80 | this.id = checkNotNull(id); |
| 81 | this.routes = buildRouteMap(checkNotNull(storageService)); |
Jonathan Hart | 1f67d28 | 2017-05-25 14:23:01 -0700 | [diff] [blame] | 82 | this.executor = checkNotNull(executor); |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 83 | |
Jonathan Hart | 1f67d28 | 2017-05-25 14:23:01 -0700 | [diff] [blame] | 84 | statusChangeListener = status -> { |
| 85 | if (status.equals(DistributedPrimitive.Status.ACTIVE)) { |
| 86 | executor.execute(this::notifyExistingRoutes); |
| 87 | } |
| 88 | }; |
| 89 | routes.addStatusChangeListener(statusChangeListener); |
| 90 | |
| 91 | notifyExistingRoutes(); |
| 92 | |
Jordan Halterman | 3b13737 | 2018-04-30 14:42:41 -0700 | [diff] [blame] | 93 | routes.addListener(listener, executor); |
Jonathan Hart | 1f67d28 | 2017-05-25 14:23:01 -0700 | [diff] [blame] | 94 | } |
| 95 | |
| 96 | private void notifyExistingRoutes() { |
Jordan Halterman | 3b13737 | 2018-04-30 14:42:41 -0700 | [diff] [blame] | 97 | getRoutes().forEach(routeSet -> delegate.notify( |
| 98 | new InternalRouteEvent(InternalRouteEvent.Type.ROUTE_ADDED, routeSet))); |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 99 | } |
| 100 | |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 101 | private ConsistentMultimap<String, RawRoute> buildRouteMap(StorageService storageService) { |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 102 | KryoNamespace routeTableSerializer = KryoNamespace.newBuilder() |
| 103 | .register(KryoNamespaces.API) |
| 104 | .register(Route.class) |
| 105 | .register(Route.Source.class) |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 106 | .register(RawRoute.class) |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 107 | .build(); |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 108 | return storageService.<String, RawRoute>consistentMultimapBuilder() |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 109 | .withName("onos-routes-" + id.name()) |
| 110 | .withRelaxedReadConsistency() |
| 111 | .withSerializer(Serializer.using(routeTableSerializer)) |
| 112 | .build(); |
| 113 | } |
| 114 | |
| 115 | @Override |
| 116 | public RouteTableId id() { |
| 117 | return id; |
| 118 | } |
| 119 | |
| 120 | @Override |
| 121 | public void shutdown() { |
Jonathan Hart | 1f67d28 | 2017-05-25 14:23:01 -0700 | [diff] [blame] | 122 | routes.removeStatusChangeListener(statusChangeListener); |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 123 | routes.removeListener(listener); |
| 124 | } |
| 125 | |
| 126 | @Override |
| 127 | public void destroy() { |
| 128 | shutdown(); |
| 129 | routes.destroy(); |
| 130 | } |
| 131 | |
| 132 | @Override |
| 133 | public void update(Route route) { |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 134 | routes.put(route.prefix().toString(), new RawRoute(route)); |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 135 | } |
| 136 | |
| 137 | @Override |
pier | 8a86db2 | 2019-10-16 16:58:20 +0200 | [diff] [blame] | 138 | public void update(Collection<Route> routesAdded) { |
| 139 | Map<String, Collection<? extends RawRoute>> computedRoutes = new HashMap<>(); |
| 140 | computeRoutesToAdd(routesAdded).forEach((prefix, routes) -> computedRoutes.computeIfAbsent( |
| 141 | prefix, k -> Sets.newHashSet(routes))); |
| 142 | routes.putAll(computedRoutes); |
| 143 | } |
| 144 | |
| 145 | @Override |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 146 | public void remove(Route route) { |
Jordan Halterman | fd82236 | 2018-12-22 17:01:18 -0800 | [diff] [blame] | 147 | getRoutes(route.prefix()) |
| 148 | .routes() |
| 149 | .stream() |
| 150 | .filter(r -> r.equals(route)) |
| 151 | .findAny() |
| 152 | .ifPresent(matchRoute -> { |
| 153 | routes.remove(matchRoute.prefix().toString(), new RawRoute(matchRoute)); |
| 154 | }); |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 155 | } |
| 156 | |
| 157 | @Override |
pier | 8a86db2 | 2019-10-16 16:58:20 +0200 | [diff] [blame] | 158 | public void remove(Collection<Route> routesRemoved) { |
| 159 | Map<String, Collection<? extends RawRoute>> computedRoutes = new HashMap<>(); |
| 160 | computeRoutesToRemove(routesRemoved).forEach((prefix, routes) -> computedRoutes.computeIfAbsent( |
| 161 | prefix, k -> Sets.newHashSet(routes))); |
| 162 | routes.removeAll(computedRoutes); |
| 163 | } |
| 164 | |
| 165 | @Override |
Daniel Ginsburg | 83b7645 | 2018-06-09 01:43:59 +0300 | [diff] [blame] | 166 | public void replace(Route route) { |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 167 | routes.replaceValues(route.prefix().toString(), Sets.newHashSet(new RawRoute(route))); |
Daniel Ginsburg | 83b7645 | 2018-06-09 01:43:59 +0300 | [diff] [blame] | 168 | } |
| 169 | |
| 170 | @Override |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 171 | public Collection<RouteSet> getRoutes() { |
Jordan Halterman | 3b13737 | 2018-04-30 14:42:41 -0700 | [diff] [blame] | 172 | return routes.stream() |
| 173 | .map(Map.Entry::getValue) |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 174 | .collect(Collectors.groupingBy(RawRoute::prefix)) |
Jordan Halterman | 3b13737 | 2018-04-30 14:42:41 -0700 | [diff] [blame] | 175 | .entrySet() |
| 176 | .stream() |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 177 | .map(entry -> new RouteSet(id, |
| 178 | IpPrefix.valueOf(entry.getKey()), |
| 179 | entry.getValue().stream().map(RawRoute::route).collect(Collectors.toSet()))) |
Jordan Halterman | 3b13737 | 2018-04-30 14:42:41 -0700 | [diff] [blame] | 180 | .collect(Collectors.toList()); |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 181 | } |
| 182 | |
| 183 | @Override |
| 184 | public RouteSet getRoutes(IpPrefix prefix) { |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 185 | Versioned<Collection<? extends RawRoute>> routeSet = routes.get(prefix.toString()); |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 186 | if (routeSet != null) { |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 187 | return new RouteSet(id, prefix, routeSet.value().stream().map(RawRoute::route).collect(Collectors.toSet())); |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 188 | } |
| 189 | return null; |
| 190 | } |
| 191 | |
| 192 | @Override |
| 193 | public Collection<Route> getRoutesForNextHop(IpAddress nextHop) { |
Jordan Halterman | 3b13737 | 2018-04-30 14:42:41 -0700 | [diff] [blame] | 194 | return routes.stream() |
| 195 | .map(Map.Entry::getValue) |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 196 | .filter(r -> IpAddress.valueOf(r.nextHop()).equals(nextHop)) |
| 197 | .map(RawRoute::route) |
Jordan Halterman | 3b13737 | 2018-04-30 14:42:41 -0700 | [diff] [blame] | 198 | .collect(Collectors.toSet()); |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 199 | } |
| 200 | |
pier | 8a86db2 | 2019-10-16 16:58:20 +0200 | [diff] [blame] | 201 | @Override |
| 202 | public Collection<RouteSet> getRoutesForNextHops(Collection<IpAddress> nextHops) { |
| 203 | // First create a reduced snapshot of the store iterating one time the map |
| 204 | Map<String, Collection<? extends RawRoute>> filteredRouteStore = new HashMap<>(); |
Charles Chan | f8bd3ae | 2021-06-07 16:08:43 -0700 | [diff] [blame] | 205 | routes.stream() |
| 206 | .map(Map.Entry::getValue) |
pier | 8a86db2 | 2019-10-16 16:58:20 +0200 | [diff] [blame] | 207 | .filter(r -> nextHops.contains(IpAddress.valueOf(r.nextHop()))) |
| 208 | .forEach(r -> filteredRouteStore.computeIfAbsent(r.prefix, k -> { |
| 209 | // We need to get all the routes because the resolve logic |
| 210 | // will use the alternatives as well |
| 211 | Versioned<Collection<? extends RawRoute>> routeSet = routes.get(k); |
| 212 | if (routeSet != null) { |
| 213 | return routeSet.value(); |
| 214 | } |
| 215 | return null; |
| 216 | })); |
| 217 | // Return the collection of the routeSet we have to resolve |
| 218 | return filteredRouteStore.entrySet().stream() |
| 219 | .map(entry -> new RouteSet(id, IpPrefix.valueOf(entry.getKey()), |
| 220 | entry.getValue().stream().map(RawRoute::route).collect(Collectors.toSet()))) |
| 221 | .collect(Collectors.toSet()); |
| 222 | } |
| 223 | |
| 224 | private Map<String, Collection<RawRoute>> computeRoutesToAdd(Collection<Route> routesAdded) { |
| 225 | Map<String, Collection<RawRoute>> computedRoutes = new HashMap<>(); |
| 226 | routesAdded.forEach(route -> { |
| 227 | Collection<RawRoute> tempRoutes = computedRoutes.computeIfAbsent( |
| 228 | route.prefix().toString(), k -> Sets.newHashSet()); |
| 229 | tempRoutes.add(new RawRoute(route)); |
| 230 | }); |
| 231 | return computedRoutes; |
| 232 | } |
| 233 | |
| 234 | private Map<String, Collection<RawRoute>> computeRoutesToRemove(Collection<Route> routesRemoved) { |
| 235 | Map<String, Collection<RawRoute>> computedRoutes = new HashMap<>(); |
| 236 | routesRemoved.forEach(route -> getRoutes(route.prefix()) |
| 237 | .routes() |
| 238 | .stream() |
| 239 | .filter(r -> r.equals(route)) |
| 240 | .findAny() |
| 241 | .ifPresent(matchRoute -> { |
| 242 | Collection<RawRoute> tempRoutes = computedRoutes.computeIfAbsent( |
| 243 | matchRoute.prefix().toString(), k -> Sets.newHashSet()); |
| 244 | tempRoutes.add(new RawRoute(matchRoute)); |
| 245 | })); |
| 246 | return computedRoutes; |
| 247 | } |
| 248 | |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 249 | private class RouteTableListener |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 250 | implements MultimapEventListener<String, RawRoute> { |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 251 | |
| 252 | private InternalRouteEvent createRouteEvent( |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 253 | InternalRouteEvent.Type type, MultimapEvent<String, RawRoute> event) { |
| 254 | Collection<? extends RawRoute> currentRoutes = Versioned.valueOrNull(routes.get(event.key())); |
Jordan Halterman | 3b13737 | 2018-04-30 14:42:41 -0700 | [diff] [blame] | 255 | return new InternalRouteEvent(type, new RouteSet( |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 256 | id, IpPrefix.valueOf(event.key()), currentRoutes != null ? |
| 257 | currentRoutes.stream().map(RawRoute::route).collect(Collectors.toSet()) |
| 258 | : Collections.emptySet())); |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 259 | } |
| 260 | |
| 261 | @Override |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 262 | public void event(MultimapEvent<String, RawRoute> event) { |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 263 | InternalRouteEvent ire = null; |
| 264 | switch (event.type()) { |
| 265 | case INSERT: |
| 266 | ire = createRouteEvent(InternalRouteEvent.Type.ROUTE_ADDED, event); |
| 267 | break; |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 268 | case REMOVE: |
| 269 | ire = createRouteEvent(InternalRouteEvent.Type.ROUTE_REMOVED, event); |
| 270 | break; |
| 271 | default: |
| 272 | break; |
| 273 | } |
Jordan Halterman | 3b13737 | 2018-04-30 14:42:41 -0700 | [diff] [blame] | 274 | delegate.notify(ire); |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 275 | } |
| 276 | } |
Jonathan Hart | 1f67d28 | 2017-05-25 14:23:01 -0700 | [diff] [blame] | 277 | |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 278 | /** |
| 279 | * Represents a route object stored in the underlying ConsistentMultimap. |
| 280 | */ |
| 281 | private static class RawRoute { |
| 282 | private Route.Source source; |
| 283 | private String prefix; |
| 284 | private String nextHop; |
| 285 | private NodeId sourceNode; |
| 286 | |
| 287 | RawRoute(Route route) { |
| 288 | this.source = route.source(); |
| 289 | this.prefix = route.prefix().toString(); |
| 290 | this.nextHop = route.nextHop().toString(); |
| 291 | this.sourceNode = route.sourceNode(); |
| 292 | } |
| 293 | |
| 294 | String prefix() { |
| 295 | return prefix; |
| 296 | } |
| 297 | |
| 298 | String nextHop() { |
| 299 | return nextHop; |
| 300 | } |
| 301 | |
| 302 | Route route() { |
| 303 | return new Route(source, IpPrefix.valueOf(prefix), IpAddress.valueOf(nextHop), sourceNode); |
| 304 | } |
pier | 594843a | 2018-12-21 22:02:25 +0100 | [diff] [blame] | 305 | |
| 306 | public int hashCode() { |
| 307 | return Objects.hash(prefix, nextHop); |
| 308 | } |
| 309 | |
| 310 | @Override |
| 311 | public boolean equals(Object other) { |
| 312 | if (this == other) { |
| 313 | return true; |
| 314 | } |
| 315 | |
| 316 | if (!(other instanceof RawRoute)) { |
| 317 | return false; |
| 318 | } |
| 319 | |
| 320 | RawRoute that = (RawRoute) other; |
| 321 | |
| 322 | return Objects.equals(this.prefix, that.prefix) && |
| 323 | Objects.equals(this.nextHop, that.nextHop); |
| 324 | } |
| 325 | |
| 326 | @Override |
| 327 | public String toString() { |
| 328 | return toStringHelper(this) |
| 329 | .add("prefix", prefix) |
| 330 | .add("nextHop", nextHop) |
| 331 | .toString(); |
| 332 | } |
| 333 | |
Jordan Halterman | 5f5ceb6 | 2018-10-01 23:17:57 -0700 | [diff] [blame] | 334 | } |
Jonathan Hart | 96c146b | 2017-02-24 16:32:00 -0800 | [diff] [blame] | 335 | } |