Hi Hadem,

It is depending on what you want to get though, you attempt to get neighbors
information, right?
In that case, you should use "neighbors_get()" (plural form) instead of
"neighbor_get()".
http://ryu.readthedocs.io/en/latest/library_bgp_speaker_ref.html#ryu.services.protocols.bgp.bgpspeaker.BGPSpeaker.neighbors_get

With "neighbor_get()" with "route_type='received-routes'", Ryu should return the
adj-RIB-in information and I guess it is always an empty list when starting up
(connections are not established with neighbors).


Thanks,
Iwase


On 2018年01月13日 00:59, Pynbiang Hadem wrote:
Hi Iwase,

I've made the modifications accordingly. *Now i am able to see the output for vrfs_get() and rib_get()*. *However there is still no output for neighbor_get() . ---output is in **BGPTest-output.py*
*Pls advice how to get the output for neighbor_get().*
*Enclosed herewith: (1) modified bgpapplication1.py & (2) BGPTest-output.py*

Thanks
Hadem




On Fri, Jan 12, 2018 at 7:36 AM, Iwase Yusuke <iwase.yusu...@gmail.com <mailto:iwase.yusu...@gmail.com>> wrote:

    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
    
<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 <mailto:Ryu-devel@lists.sourceforge.net>
        https://lists.sourceforge.net/lists/listinfo/ryu-devel
        <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


------------------------------------------------------------------------------
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

Reply via email to