Hello Windhya,

How about this:

"match":{"dl_type": 2048, "nw_src": "10.0.0.1/16", "ip_dscp": 4}

Currently the mask value should be combined with IP address in a field.
nw_tos is available for ofctl_v1_0 but not for v1_2 & v1_3 so I guess
you're connecting to an OF1.2+ datapath, maybe you can use ip_dscp & ip_ecn
instead.

I suggest taking a look at to_match() codes in ryu/lib/ofctl_v1_{0,2,3}.py
for match fields supported by REST API. :)

Sincerely,

Wei-Li Tang


2014-04-25 19:11 GMT+08:00 Windhya Rankothge <[email protected]>:

> Hi all,
>
> I am trying to write a flow rule with REST API to match source IP address,
> the wild card mask and TOS
>
> src = '10.0.0.1'
> mask = '16'
> tos = '4'
>
> '"match":{"dl_type":"2048",' + '"nw_src":' + '"' + src + '",' +
> '"nw_src_mask":' + '"' + mask + '",' + '"nw_tos":' + '"' + tos + '",'}
>
> Rule get installed withour error messages, but i can see only the nw_src
> field.. other two fields are not considered.
>
> Am I missing something here ?
>
> Best Regards,
>
> Windhya Rankothge,
> Universitat Pompeu Fabra,
> Barcelona.
>
>
> ------------------------------------------------------------------------------
> Start Your Social Network Today - Download eXo Platform
> Build your Enterprise Intranet with eXo Platform Software
> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
> Get Started Now And Turn Your Intranet Into A Collaboration Platform
> http://p.sf.net/sfu/ExoPlatform
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>


-- 
Sincerely,

Wei-Li Tang
System Engineer, Xinguard Inc.
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to