summaryrefslogtreecommitdiffstats
path: root/routing/routing-impl/src/test/resources/ipv6
diff options
context:
space:
mode:
authorMichal Cmarada <michal.cmarada@pantheon.tech>2018-07-09 13:59:31 +0200
committerMichal Cmarada <michal.cmarada@pantheon.tech>2018-07-18 12:25:43 +0200
commit20529403b5f257298670f839ad630fbf0c215a7d (patch)
tree031e6d3f9a7968e7ccd35eaba3ca95a1009450c4 /routing/routing-impl/src/test/resources/ipv6
parent220404db4488c6562f50f4b45ba75c8c256c8121 (diff)
Fix binding name for route
In specific case when route uses 128 mask and this value is converted to byte value it is changed to -128, which breaks internal naming of routes. This needed to be fixed because routes with 128 mask are not being read from VPP to operational state. Change-Id: Ic3b6ded721e7996587982b6a2b3bc8c9ebe03b43 Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
Diffstat (limited to 'routing/routing-impl/src/test/resources/ipv6')
-rw-r--r--routing/routing-impl/src/test/resources/ipv6/simplehop/simpleHopRoute128.json18
1 files changed, 18 insertions, 0 deletions
diff --git a/routing/routing-impl/src/test/resources/ipv6/simplehop/simpleHopRoute128.json b/routing/routing-impl/src/test/resources/ipv6/simplehop/simpleHopRoute128.json
new file mode 100644
index 000000000..2e7510607
--- /dev/null
+++ b/routing/routing-impl/src/test/resources/ipv6/simplehop/simpleHopRoute128.json
@@ -0,0 +1,18 @@
+{
+ "static-routes": {
+ "ipv6": {
+ "route": [
+ {
+ "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/128",
+ "next-hop": {
+ "next-hop-address" : "2001:0db8:0a0b:12f0:0000:0000:0000:0002",
+ "outgoing-interface": "iface"
+ },
+ "vpp-ipv6-route" : {
+ "classify-table": "classify-table-one"
+ }
+ }
+ ]
+ }
+ }
+}