Re: [Ryu-devel] Some question about ryu controller

2014-11-24 Thread FUJITA Tomonori
On Mon, 24 Nov 2014 21:07:00 +0800 Shih-Hong Shen wrote: > Hi, > > I'm a new for ryu controller. > I am trying to understand the code of simple_switch_13.py. If you are a new for Ryu, I would recommend you to read only simple_switch_13.py instead of the core of Ryu, which use some complicated P

[Ryu-devel] Some question about ryu controller

2014-11-24 Thread Shih-Hong Shen
Hi, I'm a new for ryu controller. I am trying to understand the code of simple_switch_13.py. But I have some problems about this simple file, 1) I cannot understand the decorator how to work, just like the follow code: @set_ev_cls(ofp_event.EventOFPSwitchFeatures, CONFIG_DISPATCHER)def _switch_f