Instantiate BgpPeer only once 34/96034/1
authorOleksii Mozghovyi <oleksii.mozghovyi@pantheon.tech>
Thu, 25 Mar 2021 17:58:00 +0000 (19:58 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 10 May 2021 11:52:12 +0000 (11:52 +0000)
commit602dc1b0cc2697768178d44a10a0b0bbf00e4c2f
tree0579093758f914d7d325d3149660e6e1741f21c2
parentcb762f5e04f79440883bc04fef92dfd671d12c67
Instantiate BgpPeer only once

For some reason in clustered configuration BgpPeer might be instantiated
twice and this leads to service failure, this patch introduce additional
check to avoid this.

JIRA: BGPCEP-948
Change-Id: Icb355abf89ba1dee0281c32d6dd60c95fcdfdb61
Signed-off-by: Oleksii Mozghovyi <oleksii.mozghovyi@pantheon.tech>
(cherry picked from commit d73b2dd19bbc0989f1c9fdc44419657d176f26cd)
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/config/BgpPeer.java