summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/services/protocols/bgp/api/jsonrpc.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/ryu/services/protocols/bgp/api/jsonrpc.py b/ryu/services/protocols/bgp/api/jsonrpc.py
index b44e40dc..76aa3498 100644
--- a/ryu/services/protocols/bgp/api/jsonrpc.py
+++ b/ryu/services/protocols/bgp/api/jsonrpc.py
@@ -71,6 +71,16 @@ class BgpWSJsonRpc(app_manager.RyuApp):
call('network.add', **networks)
return {}
+ @rpc_public('neighbors.get')
+ def _neighbors_get(self):
+ return call('neighbors.get')
+
+ @rpc_public('show.rib')
+ def _show_rib(self, family='ipv4'):
+ show = {}
+ show['params'] = ['rib', family]
+ return call('operator.show', **show)
+
class BgpWSJsonRpcController(ControllerBase):
def __init__(self, req, link, data, **config):