X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=bgp%2Frib-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fprotocol%2Fbgp%2Frib%2Fimpl%2FBGPPeer.java;fp=bgp%2Frib-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fprotocol%2Fbgp%2Frib%2Fimpl%2FBGPPeer.java;h=230ef3029ce22a60aa64bb4ba796bccba9e24861;hb=20f0ead22adb474614a5efc83555db5627a0c27e;hp=42995e6985560a7c55b42ae37a74eecd4532d105;hpb=2bbe797ade7139a2552184ff77fb74a37d00c372;p=bgpcep.git diff --git a/bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPPeer.java b/bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPPeer.java index 42995e6985..230ef3029c 100644 --- a/bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPPeer.java +++ b/bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPPeer.java @@ -130,9 +130,6 @@ public class BGPPeer implements BGPSessionListener, Peer, AutoCloseable, BGPPeer this.name = name; this.rpcRegistry = rpcRegistry; this.peerStats = new BGPPeerStatsImpl(this.name, this.tables); - - // add current peer to "configured BGP peer" stats - this.rib.getRenderStats().getConfiguredPeerCounter().increaseCount(); this.chain = rib.createPeerChain(this); } @@ -141,6 +138,8 @@ public class BGPPeer implements BGPSessionListener, Peer, AutoCloseable, BGPPeer } public void instantiateServiceInstance() { + // add current peer to "configured BGP peer" stats + this.rib.getRenderStats().getConfiguredPeerCounter().increaseCount(); this.ribWriter = AdjRibInWriter.create(rib.getYangRibId(), this.peerRole, this.simpleRoutingPolicy, this.chain); }