Improve handling for protocols config changes 11/73311/1
authorClaudio D. Gasparini <claudio.gasparini@pantheon.tech>
Thu, 21 Jun 2018 13:51:30 +0000 (15:51 +0200)
committerClaudio D. Gasparini <claudio.gasparini@pantheon.tech>
Thu, 21 Jun 2018 14:08:58 +0000 (16:08 +0200)
commit0dac2551209b6f5616ab90a7c38a402e87e12748
tree0854695d008ab8f118defb77c74d7c345f24f0bf
parentb1248011078b6a806bb81554e6f8ba9001bef824
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