Fix LinkstateGraphBuilder.ipv6toKey() 74/96974/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 20 Jul 2021 19:04:08 +0000 (21:04 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 21 Jul 2021 12:30:13 +0000 (14:30 +0200)
commit394df11c43a46417d85d2181a8ad18f076e9c184
tree2d26f775cb4920b987aaaa9ee90cdcdf6a4b4330
parent2c25495b3576604749d9e713f66b1de394e5a3ae
Fix LinkstateGraphBuilder.ipv6toKey()

We are picking 8 most significant bytes of the address, which is
contrary to what the comment says. Add an explicit test and fixup
the implementation.

Change-Id: Ie3817bde8be858c0a5031b643994645aa61932df
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit fb9a9abe502884ceb98a07d337ca2a1c99b2d884)
bgp/topology-provider/src/main/java/org/opendaylight/bgpcep/bgp/topology/provider/LinkstateGraphBuilder.java
bgp/topology-provider/src/test/java/org/opendaylight/bgpcep/bgp/topology/provider/LinkstateGraphBuilderTest.java [new file with mode: 0644]