Fix RouteEntry.{add,remove}Route() 26/78526/11
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 6 Dec 2018 21:30:03 +0000 (22:30 +0100)
committerClaudio David Gasparini <claudio.gasparini@pantheon.tech>
Mon, 10 Dec 2018 06:49:24 +0000 (06:49 +0000)
commitf4afee85af37e641d7fbd7fda3398b242b36126a
treefaa310da7d6d4e1416321875a03f91c95c1a11a6
parentc43e67dd4fb29c674c8854635d1f81ddb12fdaa3
Fix RouteEntry.{add,remove}Route()

This API is interfacing with MD-SAL, where values are boxed,
hence these should be propagate as they are, not forcibly unboxed
in LocRibWriter.

This improves non-addpath performance, as we are simply skipping
the unboxing operation, since we do not care at all about pathIds.

Also hide RouteKey constructor and its accessor, as everything
aside of it being an identifier (hence immutable) is a purely
package-private matter.

Change-Id: Ica7612ec5e6df8d07eb16294c1efa5fb0428f884
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/path-selection-mode/pom.xml
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/api/RouteEntry.java
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/RouteKey.java
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/impl/base/BaseRouteEntry.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/LocRibWriter.java