Hi Hadem,
First, the return value for each BGPSpeaker's API (with format="json") is str
type value.
Why you need to split them like;
vrf_result = self.speaker.vrfs_get('routes', None, 'all', 'json')
nowtime = vrf_result[0] # <--- ?
result = vrf_result[1] # <--- ?
And, please confirm the meaning of each argument when calling BGPSpeaker's
APIs.
For example, to getting all VRF configurations, you need to specify "summary"
instead of "routes".
http://ryu.readthedocs.io/en/latest/library_bgp_speaker_ref.html#ryu.services.protocols.bgp.bgpspeaker.BGPSpeaker.vrfs_get
Thanks,
Iwase
On 2018年01月11日 21:55, Pynbiang Hadem wrote:
*Hi,*
*
*
*I am getting blank output for BGPSpeaker show_vrf, show_rib, show_neighbor. The
partial output is as below:*
----------------------------------
/Sending MED Update Message.../
/Send BGP UPDATE Message for changing MED[100]/
/API method neighbor.update called with args: {'ip_address': '10.0.0.2',
'changes': {'multi_exit_disc': 100}}/
/on_update_med fired/
/MED value for neigh: Neighbor: 10.0.0.2 updated to 100/
/Calling get VRFs Information .../
/Shows BGP VRF information in a json format/
/API method operator.show called with args: {'params': ['vrf', 'routes', 'all'],
'format': 'json'}/
/+++++++++++++++++++++++++++++++/
/{ : Show VRFs /
/+++++++++++++++++++++++++++++++/
/"/
/
/
/Calling SHOW RIB .../
/Shows BGP routing information in a json format/
/API method operator.show called with args: {'params': ['rib', 'all'], 'format':
'json'}/
/+++++++++++++++++++++++++++++++/
/{ : Show rib /
/+++++++++++++++++++++++++++++++/
/"/
/
/
/Calling SHOW Neighbor.../
/Inside Show Neighbor BGP UPDATE Message/
/API method operator.show called with args: {'params': ['neighbor',
'received-routes', '10.0.0.2', 'all'], 'format': 'json'}/
/[]/
/+++++++++++++++++++++++++++++++/
/[ : Show neighbor /
/+++++++++++++++++++++++++++++++/
/]/
------------------------------------------
*I am attaching herewith my BGP application file(bgpapplication1.py). *
*Pls let me know what mistake i have done and how to display the above details.*
*
*
*Thanks*
*Hadem*
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel