Optimize deletion of entire adj-rib-in table 32/79932/13
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 25 Jan 2019 18:43:55 +0000 (19:43 +0100)
committerClaudio David Gasparini <claudio.gasparini@pantheon.tech>
Tue, 29 Jan 2019 08:03:29 +0000 (08:03 +0000)
commit80d33eac1419e0c93d5ad1b07c13e87e45814d35
tree18cd8171ec80e1b88145a02fdbe287897afa7d2e
parent951271e2931d9f3a01fc6a9e3914573018dde2a1
Optimize deletion of entire adj-rib-in table

In case we are deleting an entire table, there is no point in
issuing delete requests for its children.

This refactor eliminates the delete operations, invokes checks
for route target table only once and updates the counters only
once.

This is a stepping stone towards being able to handle LLGR_STALE
routes in an atomic fashion.

JIRA: BGPCEP-495
Change-Id: I3f345cd8764ad83bb39724fbfd42a0bcdc16a009
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/CountersUtil.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/EffectiveRibInWriter.java
bgp/rib-spi/src/main/java/org/opendaylight/protocol/bgp/rib/spi/AbstractRIBSupport.java
bgp/rib-spi/src/main/java/org/opendaylight/protocol/bgp/rib/spi/RIBSupport.java