summaryrefslogtreecommitdiffstats
path: root/routing
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-11-20 15:27:44 +0100
committerMarek Gradzki <mgradzki@cisco.com>2017-11-20 17:12:59 +0100
commit868f11f4f4da49198b8102509fb0234578be25e8 (patch)
treebd77955fc9ad0e8268ce81390f28a5b4ed805c03 /routing
parentc3524b9d3b8579f1aa79bf8c123299a94f4dcc18 (diff)
Refactor IP translators to use IetfInetUtil
Use efficient factory methods for ietf-inet-types DTOs where possible. Also cleans up some duplicated and unused code. Change-Id: I58f4163edba0dcd30e5e044cf701788446d86a0f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'routing')
-rw-r--r--routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv6RouteCustomizerTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv6RouteCustomizerTest.java b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv6RouteCustomizerTest.java
index 79d906719..3626056b8 100644
--- a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv6RouteCustomizerTest.java
+++ b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv6RouteCustomizerTest.java
@@ -211,7 +211,7 @@ public class Ipv6RouteCustomizerTest extends ListReaderCustomizerTest<Route, Rou
assertEquals(1, builder.getId().intValue());
assertEquals(1, builder.getKey().getId().intValue());
- assertEquals("2001:db8:a0b:12f0:0:0:0:1/24", builder.getDestinationPrefix().getValue());
+ assertEquals("2001:db8:a0b:12f0::1/24", builder.getDestinationPrefix().getValue());
NextHopOptions hopOptions = builder.getNextHopOptions();
assertTrue(hopOptions instanceof SpecialNextHop);
@@ -227,7 +227,7 @@ public class Ipv6RouteCustomizerTest extends ListReaderCustomizerTest<Route, Rou
assertEquals(2, builder.getId().intValue());
assertEquals(2, builder.getKey().getId().intValue());
- assertEquals("2001:db8:a0b:12f0:0:0:0:2/22", builder.getDestinationPrefix().getValue());
+ assertEquals("2001:db8:a0b:12f0::2/22", builder.getDestinationPrefix().getValue());
NextHopOptions hopOptions = builder.getNextHopOptions();
assertTrue(hopOptions instanceof SimpleNextHop);
@@ -246,7 +246,7 @@ public class Ipv6RouteCustomizerTest extends ListReaderCustomizerTest<Route, Rou
assertEquals(3, builder.getId().intValue());
assertEquals(3, builder.getKey().getId().intValue());
- assertEquals("2001:db8:a0b:12f0:0:0:0:2/16", builder.getDestinationPrefix().getValue());
+ assertEquals("2001:db8:a0b:12f0::2/16", builder.getDestinationPrefix().getValue());
NextHopOptions hopOptions = builder.getNextHopOptions();
assertTrue(hopOptions instanceof NextHopList);