Teach AbstractBestPathSelector about depreferenced routes 73/78473/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 5 Dec 2018 17:48:07 +0000 (18:48 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 5 Dec 2018 19:30:06 +0000 (20:30 +0100)
commitce089ceb78ceb6fa3b5d9cb74c132b5373cb963a
treefbea91df0c1a0afc1cdbf858495326f0b4b3a326
parent6465bb8da2e6f53b4c59dc45bdbef66a72b8a480
Teach AbstractBestPathSelector about depreferenced routes

draft-uttaro-idr-bgp-persistence-04 mandates that routes tagged
with LLGR_STALE are to be used as routes of least preference.

Teach best path selection about this use it as the first step
of discrimination: depreferenced paths will always lose to
non-depreferenced paths.

JIRA: BGPCEP-495
Change-Id: I81a1ba1d09c554dee754329b5a907fbff3d6bf84
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/spi/AbstractBestPathSelector.java