Fix binding name for route 12/13512/2
authorMichal Cmarada <[email protected]>
Mon, 9 Jul 2018 11:59:31 +0000 (13:59 +0200)
committerMichal Cmarada <[email protected]>
Wed, 18 Jul 2018 10:25:43 +0000 (12:25 +0200)
commit20529403b5f257298670f839ad630fbf0c215a7d
tree031e6d3f9a7968e7ccd35eaba3ca95a1009450c4
parent220404db4488c6562f50f4b45ba75c8c256c8121
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 <[email protected]>
routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/naming/Ipv6RouteNamesFactory.java
routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/Ipv6RouteNamesFactoryTest.java
routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv6RouteCustomizerTest.java
routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/Ipv6RouteCustomizerTest.java
routing/routing-impl/src/test/resources/ipv6/simplehop/simpleHopRoute128.json [new file with mode: 0644]