Fix LinkstateGraphBuilder.ipv6toKey() 66/96966/3
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 08:59:37 +0000 (10:59 +0200)
commitfb9a9abe502884ceb98a07d337ca2a1c99b2d884
tree398fcc45b82b3108815a59ae427c601e0eaf202b
parent90f46756f4d21aa7989e7629a8bc9a44667e9267
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>
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]