Hi everyone.

 

I am having some issues while using the simple_monitor_13 file. I state that I did not modified the script and I left it as in the Ryu book, I just created another Python file (in order to install flows) and I then copy-pasted the code of the simple_monitor_13 file.

 

In particular, I cannot properly print out the statistics of each flow because of the following error (basically the match dictionary does not recognize the ‘eth_dst’ key):

ZodiacSwitch: Exception occurred during handler processing. Backtrace from offending handler [_flow_stats_reply_handler] servicing event [EventOFPFlowStatsReply] follows.

Traceback (most recent call last):

  File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py", line 290, in _event_loop

    handler(ev)

  File "/home/ryu/ryu/ryu/app/sar_application_SDN_2.py", line 103, in _flow_stats_reply_handler

    self.logger.info('Match: %s', stat.match['eth_dst'])

  File "/usr/local/lib/python2.7/dist-packages/ryu/ofproto/ofproto_v1_3_parser.py", line 874, in __getitem__

    return dict(self._fields2)[key]

KeyError: 'eth_dst'

 

What am I doing wrong? Flows are correctly installed in each switch since I can perform ping without any problem. Moreover, the statistics of each port are displayed correctly.

 

Thanks for any suggestion and stay safe!

 


Mail priva di virus. www.avast.com
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to