Prepare EffRibInWriter for LLGR_STALE handling 76/78476/21
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 5 Dec 2018 18:18:57 +0000 (19:18 +0100)
committerMatej Perina <matej.perina@pantheon.tech>
Mon, 10 Dec 2018 19:36:50 +0000 (20:36 +0100)
commitc68ba9fedd2bed167d1271be894c98b1aa1b4040
treea170e01a1412a62004ed7b6cf2a7b65d7c94b65c
parent254125834cdfd25cd02f63deb9b98f8b829ce0d9
Prepare EffRibInWriter for LLGR_STALE handling

When a peer configured with Long-Lived Graceful Restart goes down,
we need to process all tables which it advertised as LLGR-enabled
and mark all routes as being tagged with LLGR_STALE.

LLGR_STALE community must be added to routes behind import
policy processing since policies can also add this community.
This patch should provide procedures necessary to add LLGR_STALE
community to routes.

JIRA: BGPCEP-495
Change-Id: If921e378f998109b073c628f9913f395496b3139
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Signed-off-by: Matej Perina <matej.perina@pantheon.tech>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/EffectiveRibInWriter.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/StaleCommunities.java [new file with mode: 0644]