Hi,

How about using "ev.msg.datapath.ports" for each message? Or you can use "
OFPPortDescStats".

https://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPPortDescStatsRequest

Thanks,
Iwase

2019年6月10日(月) 19:54 Wajahat Hussain Mir <mir.wajahat.huss...@gmail.com>:

> Hello,
>
> I have a case where i want to know list of all *OpenFlow* ports in the
> network when  *OFPFeaturesRequest* and *OFPSwitchFeatures* are sent in
> between the controller and the switch. What more shall i add to below code
> to fetch the list of OpenFlow ports in the network with the reception of
> above two messages.
>
>
>
>
>
>
>
>
>
>
>
> *@set_ev_cls(ofp_event.EventOFPSwitchFeatures, CONFIG_DISPATCHER)    def
> switch_features_handler(self, ev):        msg = ev.msg
> self.logger.info <http://self.logger.info>('OFPSwitchFeatures received: '
>                        '\n\tdatapath_id=0x%016x n_buffers=%d '
>            '\n\tn_tables=%d auxiliary_id=%d '
>  '\n\tcapabilities=0x%08x',                         msg.datapath_id,
> msg.n_buffers, msg.n_tables,                         msg.auxiliary_id,
> msg.capabilities)*
>
>
>
>
>
>
>
>
> With Regards
> Mir Wajahat Hussain
> _______________________________________________
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to