BUG-2383: add BestPathSelector and related classes 35/15935/8
authorRobert Varga <rovarga@cisco.com>
Mon, 2 Mar 2015 15:32:04 +0000 (16:32 +0100)
committerDana Kutenicsova <dkutenic@cisco.com>
Thu, 5 Mar 2015 08:49:51 +0000 (09:49 +0100)
commite85a5a7f7cf6908416975abad3e69b670881acb5
treead4510b0d174217985293f7a3868f8c055ecb6ee
parentc30440c3dba43e496d26f9e014fec4421c03098f
BUG-2383: add BestPathSelector and related classes

Introduce a utility BestPath class along with a builder-style selector.
The selector can be run incrementally by initiating the state from
previous selection run, then feeding all candidates and finally
extracting the best-matching path.

Change-Id: I34aab7f0c2ab4b917597a77d54508f5d93e6a8c9
Signed-off-by: Robert Varga <rovarga@cisco.com>
bgp/rib-impl/pom.xml
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BestPath.java [new file with mode: 0644]
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BestPathSelector.java [new file with mode: 0644]
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BestPathState.java [new file with mode: 0644]
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/RouterIds.java [new file with mode: 0644]