On Tue, 25 Mar 2014 11:55:50 +0100
Windhya Rankothge <[email protected]> wrote:

> I am trying to set a match condition, I have used both of following ways..
> 
> src = '10.0.0.1'
> match = parser.OFPMatch(ipv4_src = src) or match = parser.OFPMatch(nw_src =
> src)
> 
> both ways give me following error,
> 
> File
> "/usr/local/lib/python2.7/dist-packages/ryu/ofproto/ofproto_parser.py",
> line 212, in msg_pack_into
>     buf += struct.pack(fmt, *args)
> error: cannot convert argument to integer

Hmm, if you use OF1.3, OFPMatch(ipv4_src='10.0.0.1') should work.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to