Hmm,

It seems like if I'm having trouble getting this to match as well?

 flow[core.NW_DST] = ipstr_to_int("192.168.2.99")

The flow entry still becomes


  cookie=0, duration_sec=15s, duration_nsec=239000000s, table_id=1,
priority=32768, n_packets=15, n_bytes=1470,
idle_timeout=15,hard_timeout=0,dl_dst=00:22:fa:62:4a:de,actions=mod_nw_tos:0x10,mod_dl_dst:00
:1b:21:6a:83:0c,mod_nw_dst:192.168.2.99,IN_PORT

Thanks,

Aaron

On Sun, Nov 21, 2010 at 1:26 PM, Aaron Rosen <aro...@clemson.edu> wrote:

> Hello, I'm trying to match on core.NW_TOS but that doesn't seem to work.
> Below is the snippet of code that I'm trying:
>
> flow = {}
> flow[core.NW_TOS] = 0x10
> actions = [[openflow.OFPAT_SET_DL_DST, "00:22:fa:62:4a:de"],
> [openflow.OFPAT_SET_NW_DST, "192.168.1.4"],[openflow.OFPAT_OUTPUT, [0,
> self.PortMaping[dpid, "00:22:fa:62:4a:de"]]]]
> self.install_datapath_flow(dpid, flow, 15, 0, actions, bufid,
> openflow.OFP_DEFAULT_PRIORITY, inport, buf)
>
> When I check the flow it installed with dpctl I see the following:
>
>   cookie=0, duration_sec=1767s, duration_nsec=148000000s, table_id=1,
> priority=32768, n_packets=30290, n_bytes=2179728,
> idle_timeout=15,hard_timeout=0,actions=mod_dl_dst:00:22:fa:62:4a:de,mod_nw_dst:192.168
> .1.4,output:2  (No ToS matching here ? )
>
>
> Am I doing something wrong?
>
> Thanks,
>
> Aaron
>
>
> --
> Aaron O. Rosen
> Masters Student - Network Communication
> 306B Fluor Daniel
> 843.425.9777
>
>


-- 
Aaron O. Rosen
Masters Student - Network Communication
306B Fluor Daniel
843.425.9777
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to