Hi Fujimoto,
Just to avoid any further complications, i have now executed the following
command:
*Command:*
ryu-manager --verbose --config-file
ryu/ryu/services/protocols/bgp/bgp_sample_conf.py
/home/mininet/ryu/ryu/services/protocols/bgp/application.py
*Output:*
Traceback (most recent call last):
File "/usr/local/bin/ryu-manager", line 9, in <module>
load_entry_point('ryu==4.14', 'console_scripts', 'ryu-manager')()
File "/usr/local/lib/python2.7/dist-packages/ryu/cmd/manager.py", line
53, in main
default_config_files=['/usr/local/etc/ryu/ryu.conf'])
File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line
2376, in __call__
else sys.argv[1:])
File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line
3057, in _parse_cli_opts
return self._parse_config_files()
File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line
3093, in _parse_config_files
self._oparser.parse_args(self._args, namespace)
File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line
2204, in parse_args
return super(_CachedArgumentParser, self).parse_args(args, namespace)
File "/usr/lib/python2.7/argparse.py", line 1701, in parse_args
args, argv = self.parse_known_args(args, namespace)
File "/usr/lib/python2.7/argparse.py", line 1733, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
File "/usr/lib/python2.7/argparse.py", line 1939, in _parse_known_args
start_index = consume_optional(start_index)
File "/usr/lib/python2.7/argparse.py", line 1879, in consume_optional
take_action(action, args, option_string)
File "/usr/lib/python2.7/argparse.py", line 1807, in take_action
action(self, namespace, argument_values, option_string)
File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line
1605, in __call__
ConfigParser._parse_file(values, namespace)
File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line
1824, in _parse_file
raise ConfigFileParseError(pe.filename, str(pe))
oslo_config.cfg.ConfigFileParseError: Failed to parse
/home/mininet/ryu/ryu/services/protocols/bgp/bgp_sample_conf.py: at
/home/mininet/ryu/ryu/services/protocols/bgp/bgp_sample_conf.py:1, No ':'
or '=' found in assignment: 'import os'
What could be the issue here?. i am using OpenvSwitch 2.7 & ryu 4.14
Thanks
Hadem
On Thu, Jun 22, 2017 at 5:53 AM, Fujimoto Satoshi <
satoshi.fujimo...@gmail.com> wrote:
> Hi, Pynbiang
>
> I'm sorry for that I've overlooked your reply.
>
> I think something may be wrong with your ryu.conf, especially about IP
> address or port settings.
> Please check your ryu.conf, or could you let me see your ryu.conf?
>
> Thanks,
> Fujimoto
>
>
> On 2017年06月22日 01:42, Pynbiang Hadem wrote:
>
> 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
> 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