Hi,

Are you running ryu bgp with root permission?
ryu bgp listens on port 179, so root permission is required.

and if you use ‘local_address’, you have to specify ‘local_port’ too like this

    'bgp_neighbors': {
            '10.2.2.2': {
                'remote_as': 45090,
                'local_address': '10.2.2.1’,
                ‘local_port’: 11111,
                'cap_mbgp_vpnv4': True
            }
        },

thanks,

On Aug 13, 2014, at 18:32, FUJITA Tomonori <[email protected]> 
wrote:

> On Wed, 13 Aug 2014 17:32:11 +0800
> Peng Xiao <[email protected]> wrote:
> 
>> hi team
>> 
>> here is my exception.
>> 
>> $ ryu run --verbose --config-file ~/ryu/etc/ryu/ryu.conf
>> ~/ryu/ryu/services/protocols/bgp/application.py
>> loading app /home/bgpmon/ryu/ryu/services/protocols/bgp/application.py
>> Create CustomEvent called
>> instantiating app
>> /home/bgpmon/ryu/ryu/services/protocols/bgp/application.py of RyuBGPSpeaker
>> BRICK RyuBGPSpeaker
>> Loading config. from settings file.
>> INFO 2014-08-13 17:35:42,291 base 207 API method core.start called with
>> args: {'router_id': '10.2.2.1', 'label_range': (100, 100000), 'waiter':
>> <ryu.lib.hub.Event object at 0x7fec43f18250>, 'local_as': 45090,
>> 'bgp_server_port': 179, 'refresh_max_eor_time': 0,
>> 'refresh_stalepath_time': 0}
>> DEBUG 2014-08-13 17:35:42,322 evtlet 29 Create CustomEvent called
>> DEBUG 2014-08-13 17:35:42,324 base 305 Stopping activity core_service.
>> DEBUG 2014-08-13 17:35:42,324 base 266 core_service: Stopping child
>> activity UnknownActivity: 1407922542.32
>> DEBUG 2014-08-13 17:35:42,324 base 276 core_service: Stopping child thread
>> UnknownActivity: 1407922542.32
>> DEBUG 2014-08-13 17:35:42,324 application 171 Core started True
>> INFO 2014-08-13 17:35:42,325 base 207 API method neighbor.create called
>> with args: {'local_address': '10.2.2.1', 'cap_mbgp_vpnv4': True,
>> 'remote_as': 45090, 'ip_address': '10.2.2.2'}
>> DEBUG 2014-08-13 17:35:42,326 evtlet 29 Create CustomEvent called
>> DEBUG 2014-08-13 17:35:42,326 evtlet 29 Create CustomEvent called
>> DEBUG 2014-08-13 17:35:42,327 application 194 Added neighbor 10.2.2.2
>> DEBUG 2014-08-13 17:35:42,327 application 99 Started Network Controller
>> DEBUG 2014-08-13 17:35:42,327 base 317 Stopping activity core_service
>> finished.
>> ERROR 2014-08-13 17:35:42,328 hub 60 hub: uncaught exception: Traceback
>> (most recent call last):
>>  File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 52, in
>> _launch
>>    func(*args, **kwargs)
>>  File
>> "/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/base.py",
>> line 243, in start
>>    self._run(*args, **kwargs)
>>  File
>> "/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/core.py",
>> line 234, in _run
>>    server_thread.wait()
>> AttributeError: 'NoneType' object has no attribute 'wait'
> 
> Looks like you failed to create bgp's listen port for some reasons.
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> 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