Hi Fujimoto,

I have followed the steps given by you:
1) $ sudo mn --switch ovsbr --topo single,2 --mac -x
2) in host1 (xterm) i executed the following:
     root@mininet-vm:~# ryu-manager --verbose --config-file
/home/mininet/ryubgp/ryu.conf
/home/mininet/ryu/ryu/services/protocols/bgp/application.py
    * OUTPUT:*
     loading app /home/mininet/ryu/ryu/services/protocols/bgp/application.py
     Create CustomEvent called
     instantiating app
/home/mininet/ryu/ryu/services/protocols/bgp/application.py of RyuBGPSpeaker
     BRICK RyuBGPSpeaker
     NetworkController started listening for connections...
     Error creating socket: [Errno 97] Address family not supported by
protocol

Pls advice

Thanks
Hadem

On Fri, Apr 7, 2017 at 1:01 PM, Pynbiang Hadem <pynbiang.ha...@gmail.com>
wrote:

> Hi,
>
> I'm running the above BGP test applications on ryu 3.30 and am getting
> some errors:
>
> File "/usr/local/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 
> 46, in socket_checkerr
>     raise socket.error(err, errno.errorcode[err])
> error: [Errno 101] ENETUNREACH
>
> I executed as below:
>
> ryu-manager /home/mininet/BGP3/application1.py --config-file 
> /home/mininet/BGP3/ryu.conf
>
>
> Do i need to run it on higher version of ryu?. Pls advice
>
> Thanks
> Hadem
>
>
>
> On Tue, Apr 4, 2017 at 9:28 AM, Pynbiang Hadem <pynbiang.ha...@gmail.com>
> wrote:
>
>> Thanks Fujimoto for the insightful reply.
>> I will try to implement it accordingly.
>>
>> Thanks
>> Hadem
>>
>>
>> On Tue, Apr 4, 2017 at 8:28 AM, Fujimoto Satoshi <
>> satoshi.fujimo...@gmail.com> wrote:
>>
>>> Hi, Pynbiang
>>>
>>>
>>> FYI, you can run two Ryu BGP applications by the following steps:
>>>
>>> 1. Run mininet
>>>     $ sudo mn --switch ovsbr --topo single,2 --mac -x
>>>
>>> 2. Run applications in each host
>>>     h1> ryu-manager [application1.py] --bgp-app-config-file
>>> [config_file_for_application1.py]
>>>     h2> ryu-manager [application2.py] --bgp-app-config-file
>>> [config_file_for_application2.py]
>>>
>>>
>>> Thanks,
>>> Fujimoto
>>>
>>>
>>> On 2017年04月04日 10:41, Fujimoto Satoshi wrote:
>>>
>>> Hi, Pynbiang
>>>
>>>
>>> I guess it is the cause of the problem that the two applications use the
>>> same port.
>>> Unfortunately, the port which the application uses is no configurable,
>>> so you cannot run the two applications simultaneously in a single host.
>>>
>>> To run the applications, I suggest the following choices.
>>>
>>> 1. I recommend you to use Docker or VM(Virtual Box, KVM, ...).
>>>     You can run applications in each container or VM.
>>>
>>> 2. If you have installed mininet, you can run applications in each
>>> virtual host("h1", "h2", ...) created by mininet.
>>>      It is because the namespace is separated by virtual hosts.
>>>      Please note that virtual switches such as "s1" is not in a
>>> separated namespace,
>>>      so you have to run applications in virtual hosts.
>>>
>>>
>>> Thanks,
>>> Fujimoto
>>>
>>>
>>> On 2017年04月03日 18:33, Pynbiang Hadem wrote:
>>>
>>> Hi,
>>>
>>> I prepared two instances of the RYU BGP app as below:
>>> 1) /home/mininet/BGP1/application1.py
>>> 2) /home/mininet/BGP2/application2.py
>>>
>>> I also made the changes to the application1.py (correspondingly for
>>> application2.py) as below:
>>>
>>> CONF.register_opts([
>>>     cfg.IntOpt('bind-port', default=50001, help='rpc-port'),
>>>     cfg.StrOpt('bind-ip', default='0.0.0.1', help='rpc-bind-ip'),
>>>     cfg.StrOpt('bgp-config-file', 
>>> default="/home/mininet/BGP1/bgpconfig1.py",
>>>                help='bgp-config-file')
>>> ])
>>>
>>> I am also attaching herewith the modified *configuration files* taken from 
>>> ryu/ryu/services/protocols/bgp_sample_conf.py for application1.py and 
>>> application2.py respectively.
>>>
>>> The problem is that i am not able to run the two applications 
>>> simultaneously.
>>>
>>> Kindly advice what else i am missing here.
>>>
>>> Thanks
>>>
>>> Hadem
>>>
>>> On Mon, Apr 3, 2017 at 6:22 AM, Fujimoto Satoshi <
>>> satoshi.fujimo...@gmail.com> wrote:
>>>>
>>>> Hi, Pynbiang. Yes, you need to run at least 3 instances of the
>>>> application for a network with three AS. If you want to run more BGP
>>>> instances in an AS, you need to run more instances of the application.
>>>> Thanks, Fujimoto
>>>> On 2017年04月02日 19:42, Pynbiang Hadem wrote:
>>>>
>>>> Hi,
>>>> I want to run the RYU BGP 
>>>> application(ryu/ryu/services/protocols/application.py)
>>>> for a network with three AS. Do i need to run 3 instances of the
>>>> application, one instance for each AS?. OR am i having a wrong idea about
>>>> this?.
>>>> Pls advice. I am not able to proceed with the test.
>>>> 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 
>>>> listRyu-devel@lists.sourceforge.nethttps://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 
>>> listRyu-devel@lists.sourceforge.nethttps://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