Hi,

On 2015年09月02日 12:03, muzixing.com wrote:
> I find out that different version of Ryu has different name of 
> bytearray_to_hex.
> 
> In older version, it  is  bytearray_to_hex, while in newer version, it is 
> _bytearray_to_hex.
> 
> so, the problem now is that *how to build Ryu completely*? 

Which version of Ryu are you using?
Latest Ryu uses utils.hex_array instead of utils.bytearray_to_hex.
 https://github.com/osrg/ryu/blob/master/ryu/ofproto/ofproto_parser.py#L70

Thanks,
Iwase

> 
> ------------------
> Distance 李呈
> 
> _____________________________________________________
> School of Information and Communication Engineering
> Beijing University of Posts and Telecommunications
> Beijing 100876, PR China
> 
> 北京邮电大学·信息与通信工程学院·通信工程
> _____________________________________________________
> Mobile Phone: 
> (+86) 151-1698-3550 Beijing 
> E-mail:
> [email protected]
> [email protected]
> Homepage:
> http://www.muzixing.com
> 
>  
> 
> 
> ------------------ 原始邮件 ------------------
> *发件人:* "muzixing.com";<[email protected]>;
> *发送时间:* 2015年9月2日(星期三) 上午10:59
> *收件人:* "ryu-devel"<[email protected]>;
> *主题:* [Ryu-devel] utils module has not attribute bytearray_to_hex
> 
> If errors occur when parsing a packet, Ryu will raise a except, which will 
> call utils.bytearray_to_hex method.
> 
> Unfortunately, it will raise an attribute ERROR: 'module' utils has not 
> attribute 'bytearray_to_hex'
> 
> but I still can find the bytearray_to_hex method in utils.py
> 
> Why?
> 
> Related codes show below:
> 
>     try:
>         return msg_parser(datapath, version, msg_type, msg_len, xid, buf)
>     except:
>         LOG.exception(
>             'Encounter an error during parsing OpenFlow packet from switch.'
>             'This implies switch sending a malformed OpenFlow packet.'
>             'version 0x%02x msg_type %d msg_len %d xid %d buf %s',
>             version, msg_type, msg_len, xid, utils.bytearray_to_hex(buf))
>         return None
> 
> 
> ------------------
> Distance 李呈
> 
> _____________________________________________________
> School of Information and Communication Engineering
> Beijing University of Posts and Telecommunications
> Beijing 100876, PR China
> 
> 北京邮电大学·信息与通信工程学院·通信工程
> _____________________________________________________
> Mobile Phone:
> (+86) 151-1698-3550 Beijing
> E-mail:
> [email protected]
> [email protected]
> Homepage:
> http://www.muzixing.com
> 
>  
> 
> 
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> 
> 
> 
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to