Refactor StaleBestPathRoute 12/78512/20
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 14 Dec 2018 17:07:38 +0000 (18:07 +0100)
committerRobert Varga <nite@hq.sk>
Fri, 14 Dec 2018 19:40:39 +0000 (19:40 +0000)
commit2c663845e23c7feb52dc5bda59400732bede76e5
tree4e988eb751129fe7c075610d6e306e7789249543
parent25ef3d478a6c6291503a8526dad11b884d7b3e19
Refactor StaleBestPathRoute

This removes the dependency on RIBSupport by forcing users to provide
proper lists. Since there are only two users, we can create specialized
instances, co-located with them, so that we do not have to cross through
SPI/implementation boundaries.

This allows saves quite a bit of memory in non-addpath case and also
improves code AddPathAbstractRouteEntry isolation, as we no longer
leak List<Long> all over the place.

Change-Id: I48b91d15df738095812736dfdeaa71d88b30598b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
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/base/BaseRouteEntry.java
bgp/rib-spi/src/main/java/org/opendaylight/protocol/bgp/rib/spi/entry/StaleBestPathRoute.java