this parameter will support to display like cli as follows.
Status codes: * valid, > best
Network Next Hop Reason
Metric LocPrf Path
VPN: ('64511:101', 'ipv4')
*> 10.20.2.0/24 0.0.0.0 Only Path
2
*> 10.20.1.0/24 0.0.0.0 Only Path
2
*> 10.20.3.0/24 0.0.0.0 Only Path
2
Signed-off-by: Toshiki Tsuboi <[email protected]>
---
ryu/services/protocols/bgp/bgpspeaker.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ryu/services/protocols/bgp/bgpspeaker.py
b/ryu/services/protocols/bgp/bgpspeaker.py
index 949e969..2dfbd3a 100644
--- a/ryu/services/protocols/bgp/bgpspeaker.py
+++ b/ryu/services/protocols/bgp/bgpspeaker.py
@@ -362,9 +362,10 @@ class BGPSpeaker(object):
vrf[vrfs.ROUTE_DISTINGUISHER] = route_dist
call('vrf.delete', **vrf)
- def vrfs_get(self):
+ def vrfs_get(self, format='json'):
show = {}
show['params'] = ['vrf', 'routes', 'all']
+ show['format'] = format
return call('operator.show', **show)
def rib_get(self, family='ipv4', format='json'):
--
1.9.1
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel