Hi Ryu developer team
I have just found the bug for Ryu-bgp .
Please let me share a bug report as follows
(1) starting My sampleApp
-> neighbor create succeed
$ sudo ./start_RyuBGPSpeaker.sh
INFO 2014-07-20 19:07:29,012 base 207 API method core.start called with
args: {'router_id': '10.10.0.2', 'label_range': (100, 100000), 'waiter':
<ryu.lib.hub.Event object at
0x7f8b8d8dba90>, 'local_as': 64512, 'bgp_server_port': 179,
'refresh_max_eor_time': 0, 'refresh_stalepath_time': 0}
INFO 2014-07-20 19:07:29,059 base 207 API method neighbor.create called
with args: {'remote_as': 64511, 'ip_address': '192.168.100.100'}
INFO 2014-07-20 19:07:29,060 base 207 API method network.add called with
args: {'prefix': '10.20.0.0/24'}
INFO 2014-07-20 19:07:29,061 base 207 API method network.add called with
args: {'prefix': '10.30.0.0/24'}
INFO 2014-07-20 19:07:29,062 base 207 API method network.add called with
args: {'prefix': '10.40.0.0/16'}
INFO 2014-07-20 19:07:29,063 base 207 API method network.add called with
args: {'prefix': '10.50.0.0/16'}
CRITICAL 2014-07-20 19:07:30,096 peer 1759 Connection to peer:
192.168.100.100 established
(2) neighbor reset through RPC in Ryu-cli
-> RPC ERROR has occurred
$ ./rpc_cli.py --peers=bgps=localhost:50002
(Cmd) request bgps core.reset_neighbor [{'ip_address': '192.168.100.100'}]
RPC ERROR 500.1 - global name 'BGP_ERROR_CEASE' is not defined
(3) At that instant, start_RyuBGPSpeaker.sh has catched Traceback as bellow .
------------------------------
… snip ..
CRITICAL 2014-07-20 19:07:30,096 peer 1759 Connection to peer:
192.168.100.100 established
CRITICAL 2014-07-20 19:08:09,790 net_ctrl 121 RPC Session to ('127.0.0.1',
41429) started
INFO 2014-07-20 19:08:36,408 base 207 API method core.reset_neighbor called
with args: {'ip_address': '192.168.100.100'}
ERROR 2014-07-20 19:08:36,410 base 225 Traceback (most recent call last):
File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/api/base.py",
line 220, in call
return call(**kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/api/core.py",
line 71, in reset_neighor
neigh_conf.enabled = False
File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/rtconf/neighbors.py",
line 351, in enabled
enable)
File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/rtconf/base.py",
line 252, in _notify_listeners
callback(ConfEvent(self, evt, value))
File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/peer.py",
line 428, in on_update_enabled
BGP_ERROR_CEASE,
NameError: global name 'BGP_ERROR_CEASE' is not defined
------------------------------
It seems BGP_ERROR_CEASE has not defined yet .
Best regards .
Toshiki Tsuboi
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel