Hi,

On Fri, 11 Apr 2014 12:48:35 +0200
Hanieh Rajabi <[email protected]> wrote:

> Since I have added extra functionality to my openflow 1.3, I need the
> controller app send the feature request to the switch to inquiry about the
> new added feature.
> But by running
> 
>  @set_ev_cls(ofp_event.EventOFPSwitchFeatures, CONFIG_DISPATCHER)
>   def switch_features_handler(self, ev)
> 
>  def send_features_request(self, datapath):
>          ofp_parser = datapath.ofproto_parser
> 
>          req = ofp_parser.OFPFeaturesRequest(datapath)
>          datapath.send_msg(req)
> 
> event and event hander, It seems by default ev.msg return:
> 
>  switch features ev version: 0x4 msg_type 0x6 xid 0x2e11eb2e
> OFPSwitchFeatures(auxiliary_id=0,capabilities=79,datapath_id=1,n_buffers=256,n_tables=64)
> 
> As I debuged my switch, msg feature request is not sent by controller to
> switch for new capabilities.
> I have to imply that new capabilities has been added enum ofp_capabilities
> in 
> ofproto_v1_3.py<https://github.com/osrg/ryu/blob/master/ryu/ofproto/ofproto_v1_3.py>
> 
> Is there any default event generator in ryu that generate this event
> without asking from the switch.

I'm not sure I understand correctly your question. If you mean that
Ryu sends OFPSwitchFeaturesRequest, then yes:

https://github.com/osrg/ryu/blob/master/ryu/controller/ofp_handler.py#L178

You can find the handler for the response below.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to