diff options
author | Michal Cmarada <michal.cmarada@pantheon.tech> | 2018-05-10 10:14:07 +0200 |
---|---|---|
committer | Michal Cmarada <michal.cmarada@pantheon.tech> | 2018-05-10 10:14:07 +0200 |
commit | 1e1547b7c39f8081ac3621264d0e27d88ba3ffc8 (patch) | |
tree | 6b06cf711643b348003e2c16c16a6e6e4eea0765 /routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv4RouteCustomizerTest.java | |
parent | 8f9fe3ca424abc56d212a96af4ec5750a29e7673 (diff) |
HC2VPP-317 - Add FibService and FibTableService
VPP doesn`t support auto create for Fib tables anymore,
when adding a new route.
Adding FibService to check if table exists and
FibTableService to add or delete ipv4/6 fib tables.
Note: Need to implement full support for Fib Table management later.
Change-Id: I15bd1b62357ab24a5eac970113bfcd2a52d29491
Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
Diffstat (limited to 'routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv4RouteCustomizerTest.java')
-rw-r--r-- | routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv4RouteCustomizerTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv4RouteCustomizerTest.java b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv4RouteCustomizerTest.java index 5e319e370..0ba1fe576 100644 --- a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv4RouteCustomizerTest.java +++ b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv4RouteCustomizerTest.java @@ -139,6 +139,7 @@ public class Ipv4RouteCustomizerTest extends ListReaderCustomizerTest<Route, Rou mappingContext)).thenReturn(0); when(routeHopContext.getChildIndex(listRouteName, factory.uniqueRouteHopName(listRoute.path[1], mappingContext), mappingContext)).thenReturn(1); + when(configuration.getLearnedRouteNamePrefix()).thenReturn("learned-route"); } private IpFibDetailsReplyDump replyDump() { @@ -278,4 +279,4 @@ public class Ipv4RouteCustomizerTest extends ListReaderCustomizerTest<Route, Rou return new Ipv4RouteCustomizer(manager, configuration, routeHopContext, interfaceContext, routesContext, routingProtocolContext); } -}
\ No newline at end of file +} |