Thanks FUJITO. Sure, as suggested I will follow this script for BGP.
Thanks, Digambar On Fri, Aug 15, 2014 at 3:27 AM, FUJITA Tomonori < [email protected]> wrote: > On Thu, 14 Aug 2014 18:24:12 +0530 > Digambar Patil <[email protected]> wrote: > > > I have doubts about the BGP CLI implementation. > > 1. Is the already code implementation for BGP CLI command or > do I > > need to start from scratch ? > > Already exists. > > > 2 . How to enable BGP protocol instead of openflow protocol in > > RYU ? > > Because when we run the RYU app server then it directly > > uses OpenFlow. > > I'll show you below. > > > 3. I am using ubuntu14.04 for developement, dont have any > switch > > or hardware, how to use BGP in this case ? > > You can use other BGP implementations like quagga. > > I've attached a simple python script. All you need to do is 1) become > a super user (root), 2) execute the script. > > fujita@rose:~$ su > Password: > root@rose:~# > root@root:~# python simple_bgp.py py > API method core.start called with args: {'router_id': '10.0.0.1', > 'waiter': <ryu.lib.hub.Event object at 0x103888b10>, > 'bgp_server_port': 179, 'local_as': 64512, 'refresh_max_eor_time': 0, > 'refresh_stalepath_time': 0} > Create CustomEvent called > Create CustomEvent called > Starting new processing run... > Processing RT NLRI destination... > Processing destination... > starting ssh server at localhost:4990 > > > As you can see, ssh server started. You can connect from another > terminal. > > fujita@rose:~$ ssh localhost -p 4990 > > Hello, this is Ryu BGP speaker (version 3.12). > > bgpd> > > > > import eventlet > import json > eventlet.monkey_patch() > > import logging > import sys > log = logging.getLogger() > log.addHandler(logging.StreamHandler(sys.stderr)) > log.setLevel(logging.DEBUG) > > from ryu.services.protocols.bgp.bgpspeaker import BGPSpeaker > > if __name__ == "__main__": > speaker = BGPSpeaker(as_number=64512, router_id='10.0.0.1', > ssh_console=True) > > while True: > eventlet.sleep(5) > >
------------------------------------------------------------------------------
_______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
