you also need to:

from nox.netapps.monitoring.monitoring import Monitoring

On Thu, Nov 10, 2011 at 9:44 PM, Aaron Rosen <aro...@clemson.edu> wrote:

> Hi Theo,
>
> Yup there is a Monitoring.send_flow_stats_request()
>
> Cheers,
>
> Aaron
>
> P.S: here are some hints to get it working if it helps:
>
> import nox.lib.pyopenflow as of
>
>
> def send_flow_stats_request():
>    global xid
>    flows = of.ofp_match()
>    flows.wildcards = of.OFPFW_ALL  ^ of.OFPFW_DL_SRC
>    match_this_mac = "00:11:22:33:44:55"
>    flows.dl_src =  [int(a[0:2],
> 16),int(a[3:5],16),int(a[6:8],16),int(a[9:11],16),int(a[12:14],16),int(a[15:17],16)]
>    inst.Monitoring.send_flow_stats_request(dpid, flows, 0xff, xid);
>    xid +=1
>
> def flow_stats_in_handler(dpid, flows, more, xid):
>     print str(dpid) + " " + str(flows)
>     for i in flows:
>         print flows[i]
>
>
>
> You also have to register it with:
>
> inst.register_for_flow_stats_in(flow_stats_in_handler)
>
>
>
>
>
>
> On Thu, Nov 10, 2011 at 9:30 PM, Theophilus Benson <tben...@cs.wisc.edu>wrote:
>
>> Is it possible to programmatically get the flow table entries from a
>> switch.  I know that aggregate flow stats gives that tells you the number
>> of bytes sent/received, number of flows matched and match mask for each
>> flow entries.  However, I wanted the actual flow table entry itself.
>>
>> Theo
>> ______________________________**_________________
>> nox-dev mailing list
>> nox-dev@noxrepo.org
>> http://noxrepo.org/mailman/**listinfo/nox-dev<http://noxrepo.org/mailman/listinfo/nox-dev>
>>
>
>
>
> --
> Aaron O. Rosen
> Masters Student - Network Communication
> 306B Fluor Daniel
>
>
>


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

Reply via email to