summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2014-07-28 16:15:30 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-07-28 18:47:50 +0900
commit7d08001854e0adbdf4544a95c860377167218502 (patch)
tree139d418a3aa8b654ddcf2fb61e284126a6610938
parent64e98a9041249f0ac12887da6a8e862e9bd14078 (diff)
bgp: add neighbor_reset method to bgpspeaker
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/services/protocols/bgp/bgpspeaker.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/ryu/services/protocols/bgp/bgpspeaker.py b/ryu/services/protocols/bgp/bgpspeaker.py
index 1f3bd437..e1d6a411 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.