Hi,
On 2017年01月12日 04:01, Yu, Da wrote:
> Hi,
>
> I'm using RYU 4.9 to write my application. Right now I am using following
> code to register a handler to log error information:
>
> @set_ev_cls(ofp_event.EventOFPErrorMsg, [HANDSHAKE_DISPATCHER,
> CONFIG_DISPATCHER, MAIN_DISPATCHER])
> def error_msg_handler(self, ev):
> msg = ev.msg
> self.logger.debug('OFPErrorMsg received: type=0x%02x code=0x%02x '
> 'message=%s', msg.type, msg.code,
> utils.hex_array(msg.data))
Please confirm the log level of this messages.
Ryu (ryu-manager) does not output messages using "self.logger.debug()" without
"--verbose" option.
"--verbose" means the "debug" log level and the default log level of Ryu is
"info".
Then, you need to use "self.logger.info()" or add "--verbose" option to
ryu-manager.
FYI, ryu-manager with "--verbose" option will output the following messages when
received OFPErrorMsg from switches.
e.g.)
EventOFPErrorMsg received.
version=0x4, msg_type=0x1, msg_len=0x2c, xid=0xea31cff6
`-- msg_type: OFPT_ERROR(1)
OFPErrorMsg(type=0xc, code=0xa,
data=b'\x04\x1d\x00\x20\xea\x31\xcf\xf6\x00\x00\x00\x01\x00\x00\x00\x01\x00\x01\x00\x10\x00\x00\x03\xe8\x00\x00\x00\x00\x00\x00\x00\x00')
|-- type: OFPET_METER_MOD_FAILED(12)
|-- code: OFPMMFC_OUT_OF_METERS(10)
`-- data: version=0x4, msg_type=0x1d, msg_len=0x20, xid=0xea31cff6
`-- msg_type: OFPT_METER_MOD(29)
Thanks,
Iwase
>
> I know OVS doesn't support meters. So, when I use RYU to write a meter mod
> into the OVS. I should catch an OpenFlow error message with
> OFPMMFC_OUT_OF_METERS, which I can observe from the Wireshark. However, my
> error_msg_handler doesn't log anything about this error. Can anyone help me
> to explain what happened to this?
>
> Thanks for your help very much. I appreciate.
>
> Best,
> Da
>
>
> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel