Re: [Ryu-devel] About wildcard in Ryu

2014-07-29 Thread Yuliang Li
Hi, I can successfully install one wildcard. But when I want to install two wildcards, the latter one will replace the first one. For example: match=parser.OFPMatch(ipv4_dst=('10.0.*2* .0','255.255.255.0'),eth_type=0x800) actions=[parser.OFPActionOutput(5)] inst=[parser.OF

Re: [Ryu-devel] About wildcard in Ryu

2014-07-28 Thread Yuliang Li
It works! Thanks! 2014-07-28 17:59 GMT+08:00 Wei-Li Tang : > Hello, > > You can use a tuple to specify an IP network instead. For example, > > match = parser.OFPMatch(ipv4_dst=('10.0.0.0', '255.255.255.0'), > eth_type=0x0800) > > > 2014-07-28 17:34 GMT+08:00 Yuliang Li : > >> Hi all, >> >> I wan

Re: [Ryu-devel] About wildcard in Ryu

2014-07-28 Thread Wei-Li Tang
Hello, You can use a tuple to specify an IP network instead. For example, match = parser.OFPMatch(ipv4_dst=('10.0.0.0', '255.255.255.0'), eth_type=0x0800) 2014-07-28 17:34 GMT+08:00 Yuliang Li : > Hi all, > > I want to use wildcard in Ryu. But when I typed > "match=parser.OFPMatch(ipv4_dst

[Ryu-devel] About wildcard in Ryu

2014-07-28 Thread Yuliang Li
Hi all, I want to use wildcard in Ryu. But when I typed "match=parser.OFPMatch(ipv4_dst='10.0.0.0/24',eth_type=0x800)", I got "ValueError: IPAddress() does not support netmasks or subnet prefixes! See documentation for details". Could anyone tell me how to use wildcard in Ryu? Thanks a lo