commit | 00f6f26ce770b68481cd95b3bf87d058b788bb1d | [log] [tgz] |
---|---|---|
author | mohamedrahil <mohamedrahil.r@cognizant.com> | Thu Nov 24 20:20:41 2016 +0530 |
committer | Satishk-Huawei <satishk@huawei.com> | Fri Dec 09 09:31:14 2016 +0000 |
tree | 3b4289049309f91b921e6e1ee11c6f23727e8621 | |
parent | 218b9f314f364b93a84dadaa895c937b7dfdf553 [diff] [blame] |
Bgp and Pcep maintaiability Change-Id: I2c14cc29d4900ef2f0fbffd4761b0d78e282910f
diff --git a/protocols/bgp/api/src/main/java/org/onosproject/bgp/controller/BgpConnectPeer.java b/protocols/bgp/api/src/main/java/org/onosproject/bgp/controller/BgpConnectPeer.java index 03310a6..d42d32c 100644 --- a/protocols/bgp/api/src/main/java/org/onosproject/bgp/controller/BgpConnectPeer.java +++ b/protocols/bgp/api/src/main/java/org/onosproject/bgp/controller/BgpConnectPeer.java
@@ -17,12 +17,28 @@ */ public interface BgpConnectPeer { /** - * Initiate bgp peer connection. - */ + * Initiate bgp peer connection. + */ void connectPeer(); /** - * End bgp peer connection. - */ + * End bgp peer connection. + */ void disconnectPeer(); + + /** + * Returns the peer port. + * + * @return PeerPort + */ + int getPeerPort(); + + /** + * Returns the connect retry counter. + * + * @return connectRetryCounter + */ + int getConnectRetryCounter(); + + }