Hi All,

I am trying to set a flow that matches based on the nw_tos field of the
match object. But when I dump the flows on the switch it has nw_tos field
set as 0.
I am using OpenvSwitch 1.10 on Mininet 2.0
The code snippet I am using is:-

msg = of.ofp_flow_mod()
#msg.match.dl_dst = packet.dst
msg.match.dl_type = ethernet.IP_TYPE
msg.match.nw_tos =  1;

Even after installing a flow with such a match the nw_tos is still set to
zero.

*** s1
------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=13.677s, table=0, n_packets=1, n_bytes=98,
idle_age=12, ip,dl_dst=d2:35:53:03:83:bc,nw_tos=0 actions=output:1
 cookie=0x0, duration=6.652s, table=0, n_packets=3, n_bytes=294,
idle_age=3, ip,dl_dst=da:79:78:e1:7c:4f,nw_tos=0 actions=output:2


How should I set the nw_tos field in ofp_match object?
-- 
-Sameer

Reply via email to