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'

DEBUG 2014-08-13 17:35:42,329 peer 567 Started peer Peer(ip: 10.2.2.2, asn:
45090)
DEBUG 2014-08-13 17:35:42,330 net_ctrl 337 NetworkController started
listening for connections...
DEBUG 2014-08-13 17:35:42,331 base 305 Stopping activity UnknownActivity:
1407922542.28.
DEBUG 2014-08-13 17:35:42,331 base 266 UnknownActivity: 1407922542.28:
Stopping child activity core_service
DEBUG 2014-08-13 17:35:42,331 base 276 UnknownActivity: 1407922542.28:
Stopping child thread core_service
DEBUG 2014-08-13 17:35:42,332 base 317 Stopping activity UnknownActivity:
1407922542.28 finished.
DEBUG 2014-08-13 17:35:43,330 peer 214 Peer 10.2.2.2 BGP FSM went from Idle
to Connect
DEBUG 2014-08-13 17:35:43,330 peer 960 Peer(ip: 10.2.2.2, asn: 45090)
trying to connect to ('10.2.2.2', 179)
DEBUG 2014-08-13 17:35:43,330 base 398 Connect TCP called for 10.2.2.2:179
ERROR 2014-08-13 17:35:43,332 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/core.py",
line 457, in start_protocol
    self._spawn_activity(bgp_proto, peer)
  File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/base.py",
line 175, in _spawn_activity
    self._validate_activity(activity)
  File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/base.py",
line 162, in _validate_activity
    raise ActivityException(desc='Tried to spawn a child activity'
ActivityException: 100.1 - Tried to spawn a child activity before Activity
was started.



and here is my configuraiton

BGP = {

    # General BGP configuration.
    'routing': {
        # ASN for this BGP instance.
        'local_as': 45090,

        # BGP Router ID.
        'router_id': '10.2.2.1',

        # We list all BGP neighbors below. We establish EBGP sessions with
peer
        # with different AS number then configured above. We will
        # establish IBGP session if AS number is same.
        'bgp_neighbors': {
            '10.2.2.2': {
                'remote_as': 45090,
                'local_address': '10.2.2.1',
                'cap_mbgp_vpnv4': True
            }
        },

        'networks': [
        ],
    },

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

Reply via email to