Instantiate BgpPeer only once 57/95957/3
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:25 +0000 (11:52 +0000)
commit888d0198bcc0b2ce453192d06d0a2bf798eca5dd
tree22be755c77051a3259add2c2dbc9dada27b4a085
parent72d4c74a5cf4f8c3d43b42be6eae15bbcb1a83e7
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>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/config/BgpPeer.java