Signed-off-by: FUJITA Tomonori <[email protected]>
---
 ryu/services/protocols/bgp/api/jsonrpc.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/ryu/services/protocols/bgp/api/jsonrpc.py 
b/ryu/services/protocols/bgp/api/jsonrpc.py
index b44e40d..76aa349 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):
-- 
1.8.5.2 (Apple Git-48)


------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to