Signed-off-by: ISHIDA Wataru <[email protected]>
---
 ryu/services/protocols/bgp/bgpspeaker.py |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/ryu/services/protocols/bgp/bgpspeaker.py 
b/ryu/services/protocols/bgp/bgpspeaker.py
index 1f3bd43..e1d6a41 100644
--- a/ryu/services/protocols/bgp/bgpspeaker.py
+++ b/ryu/services/protocols/bgp/bgpspeaker.py
@@ -371,6 +371,17 @@ class BGPSpeaker(object):
         bgp_neighbor[neighbors.IP_ADDRESS] = address
         call('neighbor.delete', **bgp_neighbor)
 
+    def neighbor_reset(self, address):
+        """ This method reset the registered neighbor.
+
+        ``address`` specifies the IP address of the peer. It must be
+        the string representation of an IP address.
+
+        """
+        bgp_neighbor = {}
+        bgp_neighbor[neighbors.IP_ADDRESS] = address
+        call('core.reset_neighbor', **bgp_neighbor)
+
     def neighbor_update(self, address, conf_type, conf_value):
         """ This method changes the neighbor configuration.
 
-- 
1.7.10.4


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to