Remove duplicate OffsetMap code 33/78533/21
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 7 Dec 2018 04:27:26 +0000 (05:27 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 12 Dec 2018 10:44:14 +0000 (10:44 +0000)
commit5169ad7c66e7705fe7e8f7292b2664622c9a8117
tree53afae70361eb5d0c08839010573fd3dac63e816
parent72f956305104e9607ee4231f69d94a36d97b70ea
Remove duplicate OffsetMap code

Having two copies of the same class is confusing and a problem
with maintenance. Create an abstract base template to hold most
of the code.

Change-Id: I3078c2af94d440701d48e43da31c106fdbac78d2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/impl/AbstractOffsetMap.java [new file with mode: 0644]
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/impl/add/AddPathAbstractRouteEntry.java
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/impl/add/OffsetMap.java [deleted file]
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/impl/add/RouteKeyOffsets.java [new file with mode: 0644]
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/impl/base/BaseRouteEntry.java
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/impl/base/OffsetMap.java [deleted file]
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/impl/base/RouterIdOffsets.java [new file with mode: 0644]