BUG-4827: Modify ipv4-routes list model, to include path-id as part of the key 09/36109/10
authorClaudio D. Gasparini <cgaspari@cisco.com>
Fri, 11 Mar 2016 10:28:36 +0000 (11:28 +0100)
committerMilos Fabian <milfabia@cisco.com>
Thu, 17 Mar 2016 16:35:33 +0000 (16:35 +0000)
commit02559d3d5f4be9e716a30580186740f4fded6c8e
tree6fe7a04d84c52c7ad7c7a5ccbf529249d8007044
parent0ec981167b2db2dd4bc901d2724d7e8883ca7ea2
BUG-4827: Modify ipv4-routes list model, to include path-id as part of the key

Add path Id as a part of the key for ipv4-routes. This will force us to use
path-Id when writing on Loc-Rib even when add-path selection mode are not
used. Therefore we need to adapt the code on base selection mode
to take in consideration wheter model can support Add-path or not
and proced accordingly.

Change-Id: I94bc6523ff788c236008df892569d3ea04cadb65
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
bgp/inet/src/main/yang/bgp-inet.yang
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/api/BestPath.java
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/api/PathSelectionMode.java
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/impl/base/BaseAbstractRouteEntry.java
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/impl/base/BaseBestPath.java
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/spi/AbstractBestPath.java
bgp/topology-provider/src/test/java/org/opendaylight/bgpcep/bgp/topology/provider/Ipv4ReachabilityTopologyBuilderTest.java