Hello,
I find that the 1.0 version OFPMatch doesn't support keyword-style parameters.
e.g:
match = OFPMatch(
wildcards = 'wildcards', in_port = 0,
dl_src = 0, dl_dst = 0, dl_vlan = 0, dl_vlan_pcp = 0,
dl_type = 'ether.ETH_TYPE_IP', nw_tos = 0, nw_proto = 0,
nw_src = 0, nw_dst = 'ip_layer.dst', tp_src = 0,
tp_dst = 0)
will cause `TypeError: __new__() got an unexpected keyword argument 'dl_type'`
It's caused by the __new__() method in OFPMatch. Because __new__(cls, *args)
only allow positional parameter. I don't know if there're convenient ways to
fix it, but a class definition like:
class OFPMatch(object):
def __init__(self, wildcards, in_port, etc.. …)
should work.
If there're convenient ways, please tell me. Otherwise I'll send a patch in the
way as described above.
Best regards,
Can Zhang
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel