Hi Marcio,
Not all parameters are required.
For 'BGP' dictionary, most of parameters except 'neighbors', 'vrfs' and
'routes' are passed to
instantiate BGPSpeaker.
So 'local_as' (renamed into 'as_number internally) and 'router_id' are minimal
requirements.
http://ryu.readthedocs.io/en/latest/library_bgp_speaker_ref.html#ryu.services.protocols.bgp.bgpspeaker.BGPSpeaker
For 'neighbors', 'vrfs' and 'routes', please refer to the comments in
'bgp_sample_config.py'
https://github.com/osrg/ryu/blob/6e69e9b8a6ebd2bb06aa864cc76ef0b79d1ac9c3/ryu/services/protocols/bgp/bgp_sample_conf.py#L51-L53
If 'SSH' dictionary is not specified (not declared), 'bgp/application.py' will
not start SSH
console.
Also, 'LOGGING' has no effect currently. This is left due to the historical
reason.
Thanks,
Iwase
On 2017年10月06日 12:25, Marcio Vinicius de Queiroz Santos wrote:
Iwase,
Thanks for the help. I was able to run Ryu as a BGPSpeaker as you sad. Is necessary to specify all
the configurations located in the conf file or I can to omit some non-relevant settings for me? I
saw that is possible access the router via SSH protocol and show some information about BGP like the
rib content, neighbors etc. Is it possible not only show but modify the rib for example? Could I use
the Ryu API to do it?
2017-10-04 22:34 GMT-03:00 Iwase Yusuke <iwase.yusu...@gmail.com
<mailto:iwase.yusu...@gmail.com>>:
Hi Marcio,
How about using "ryu/services/protocols/bgp/application.py"?
https://github.com/osrg/ryu/blob/master/ryu/services/protocols/bgp/application.py
<https://github.com/osrg/ryu/blob/master/ryu/services/protocols/bgp/application.py>
This application has basic features for running BGP with "Python like"
configuration file.
Please refer to the sample configuration file "bgp_sample_conf.py" and try
the following
command.
$ ryu-manager --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
ryu/services/protocols/bgp/application.py
Thanks,
Iwase
On 2017年10月05日 04:13, Marcio Vinicius de Queiroz Santos wrote:
Dear,
I don´t know if it is the correct channel to explain this subject but
I´m a mastering
student and I´m researching how could the SDN can contribute to we
mitigate and improving
tha BGP Security. To do that, firstly I need to run the Ryu as a BGP
Speaker. I want to
create 3 Ryu/Mininet environments running BGP and exchanging BGP
messages with each other.
So, How could I run the Ryu as a BGPSpeaker? The manual only shows a
code to run a BGP
Instance but don´t explain more about.
Are there a complete default BGP Ryu App that I could use to run BGP
with some
configurations defined by me like neighbors, prefix and other aspects?
If not, I need to create an app that uses Ryu Framework? Are there some
place with more
materials about these points?
Since now, thanks for the Help.
------------------------------------------------------------------------------
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