Hi,
You can access it as follows.

stat.match.get('eth_dst',None) or stat.match['eth_dst']

its a dictionary, so it applies to other keys as well.

Thanks,
Rahul

On Fri, Jul 13, 2018 at 4:45 PM, knet solutions <knetsolutio...@gmail.com>
wrote:

> Hi,
>
> From the EventOFPFlowStatsReply,
>
> I am trying to extract the dst_mac and out_port.
>
> The complete stat record is below,
>
> [OFPInstructionActions(actions=[OFPActionOutput(len=
> 16,max_len=65509,port=2,type=0)],len=24,type=4)],length=
> 104,match=OFPMatch(oxm_fields={'eth_src': '00:00:00:00:00:01', 'eth_dst':
> '00:00:00:00:00:02', 'in_port': 1}),packet_count=6,priority=1,table_id=0)
>
> can you help to decode?
>
> Thanks
> suresh
>
>
> --
>
> *Regards, *
> *Knet solutions.*
>
> https://github.com/knetsolutions/KNet
> http://knet-topology-builder.readthedocs.io/
> http://knetsolutions.in/
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to