Hi

There are two way to use Ryu BGP.

One way is use Ryu BGP as a ryu app and run it with ryu command as I showed.
The other way is use Ryu BGP as a library. this needs to write some python 
script.

Documentation is ready for the second way here 
(http://ryu.readthedocs.org/en/latest/library.html)
but not for the first way.

you can do like below to specify the address family of the each peer,

in bgp config file

‘bgp_neighbors’: {
        ’10.0.0.1’: {
                ‘remote_as’: 64514,
                ‘cap_mbgp_ipv4’: True,
                ‘cap_mbgp_ipv6’: True,
                ‘cap_mbgp_vpnv4’: True,
                ‘cap_mbgp_vpnv6’: True
        }
}

by default, only cap_mbgp_ipv4 is enabled.

Thanks,

On Aug 12, 2014, at 18:52, Peng Xiao <[email protected]> wrote:

> hi 
> 
> very thanks, is there from a documentation?
> 
> another question, how to specific address family for each peer, like i want 
> to establish vpnv4 session with one peer.
> 
> 
> 2014-08-12 17:29 GMT+08:00 ISHIDA Wataru <[email protected]>:
> Hi,
> 
> you can try like below,
> 
> 1. prepare ryu.conf. contents are
> 
> [DEFAULT]
> bgp_config_file=/path/to/bgpconfigfile/bgpconfig.py
> 
> 2. prepare bgpconfig.py. sample configuration exists at 
> ryu/ryu/services/protocols/bgp_sample_conf.py
> 
> 3. run ryu
> 
> $ ryu run —config-file /path/to/ryu.conf 
> /path/to/ryu/ryu/services/protocols/application.py
> 
> 4. it might be helpful to enable verbose option and ssh client
> 
> $ ryu run —verbose —config-file /path/to/ryu.conf 
> /path/to/ryu/ryu/services/protocols/application.py 
> /path/to/ryu/ryu/services/protocols/operator/ssh.py
> 
> 5. you can login to cli by
> 
> $ ssh localhost -p 4990
> 
> Thanks,
> 
> On Aug 12, 2014, at 16:01, Peng Xiao <[email protected]> wrote:
> 
> > hi team
> >
> > i want to establish BGP connection with real routers using Ryu, what is the 
> > easiest way to do it without wring one line python code?
> >
> > thanks
> >
> > BR,
> >
> > Peng Xiao
> > ------------------------------------------------------------------------------
> > _______________________________________________
> > Ryu-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 
> 


------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to