Improve handling for protocols config changes 23/73323/3
authorClaudio D. Gasparini <claudio.gasparini@pantheon.tech>
Thu, 21 Jun 2018 15:38:37 +0000 (17:38 +0200)
committerClaudio David Gasparini <claudio.gasparini@pantheon.tech>
Fri, 22 Jun 2018 09:52:27 +0000 (09:52 +0000)
commit7b062689df8290cbcf3b1cdd6046beb908392e21
tree57a47e1663c608e91779f57a1aab2e1f596aa5f7
parentcfe971ae9116870b1d60b8ec23e073ea460bf6ee
Improve handling for protocols config changes

Given the dependency of Peers of Rib.
When delete
 - remove first peers
 - then remove Rib
when modification
 - update rib
 - then update peers

JIRA: BGPCEP-799

Change-Id: I582398dab191842473f7cbbd1010b76fe9a9d9fd
Signed-off-by: Claudio D. Gasparini <claudio.gasparini@pantheon.tech>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/config/BGPClusterSingletonService.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/config/BgpDeployerImpl.java
bgp/rib-impl/src/test/java/org/opendaylight/protocol/bgp/rib/impl/config/BgpDeployerImplTest.java