If you have defined the new packet in right place:ofproto_x.py and 
ofproto_x_parser.py, the event will be generated automatically when Ryu start.  
You can see the code in controller/of_event.py at line78:


for ofp_mods in ofproto.get_ofp_modules().values():
    ofp_parser = ofp_mods[1]
    # print 'loading module %s' % ofp_parser
    _create_ofp_msg_ev_from_module(ofp_parser)



I mentioned this 
at:http://www.muzixing.com/pages/2014/12/27/ryuhe-xin-yuan-ma-jie-du-ofphandlercontrollerryuapphe-appmanager.html
 and 
http://www.muzixing.com/pages/2015/07/24/ryuopenflowxie-yi-yuan-ma-fen-xi.html


Also, you can define the events in the controller/ofp_event.py directly, please 
look for "??????????" at 
http://www.muzixing.com/pages/2015/11/20/ji-yu-ryuda-zao-zi-ding-yi-kong-zhi-qi.html.


Good Luck!


------------------
Distance ????
_____________________________________________________
School of Information and Communication Engineering
Beijing University of Posts and Telecommunications
Beijing 100876, PR China

??????????????????????????????????????????
_____________________________________________________
Mobile Phone: 
(+86) 151-1698-3550 Beijing 
E-mail:
[email protected]
[email protected]
Homepage:
http://www.muzixing.com





 




------------------ Original ------------------
From:  "Rajasekaran, Monica";<[email protected]>;
Date:  Wed, Apr 6, 2016 00:48 AM
To:  "[email protected]"<[email protected]>; 

Subject:  [Ryu-devel] Create OF Event



  
Hi,
 
 
 
How do I create a new type of OF Event ? I see that there is a definition for 
Openflow events in ofp_event.py, but I do not know how to add a new one as it 
seems like based on the OF version, the modules are pulled and generated. 
 
 
 
Any help is appreciated.
 
 
 
Thanks.
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to