Re: [nox-dev] nox api development

2012-01-19 Thread edward wilson
hi,
I am still getting the same results after setting wildcards=0xFFF...

On Thu, Jan 19, 2012 at 12:58 PM, Murphy McCauley  wrote:

> So my first thought is to wonder what happens if you try with wildcards =
> 0x...
>
> -- Murphy
>
> On Jan 18, 2012, at 11:19 PM, edward wilson wrote:
>
> > hi,
> > Currently im using NOX 0.9.0(zaku)~full~beta (nox_core), compiled Jan  3
> 2012 15:21:13
> > Compiled with OpenFlow 0x01
> >
> > Now i have developed this api for getting aggregrate table stats
> > 1. def aggregate_timer(self, dp):
> > flow = ofp_match()
> > flow.dl_type=ethernet.ethernet.IP_TYPE
> > flow.nw_proto=ipv4.ipv4.ICMP_PROTOCOL
> > self.ctxt.send_aggregate_stats_request(dp, flow, 0xff)
> > self.post_callback(MONITOR_TABLE_PERIOD, lambda :
> self.aggregate_timer(dp))
> >
> > Now when i connect nox controller to switch and display the aggregrate
> statistics i get
> > Aggregate stats in from datapath 2c:27:d7:1d:08:7d
> > packet_count-- 0
> > flow_count-- 0
> > byte_count-- 0
> > however i have a rule with nw_proto=icmp and dl_type=ip, and packets do
> match this rule but still statistics are displayed as zero.
> >
> >
> > 2. Even if i use following definition
> > def aggregate_timer(self, dp):
> > flow = ofp_match()
> > flow.wildcards=0x
> > self.ctxt.send_aggregate_stats_request(dp, flow, 0xff)
> > self.post_callback(MONITOR_TABLE_PERIOD, lambda :
> self.aggregate_timer(dp)
> > now in this case statistics should be displayed for all rules but again
> the aggregrate statistics displayed are zero.
> > Aggregate stats in from datapath 2c:27:d7:1d:08:7d
> > packet_count-- 0
> > flow_count-- 0
> > byte_count-- 0
> >
> > Please let me know if am missing something.
> >
> > regards
> >
> > ___
> > nox-dev mailing list
> > nox-dev@noxrepo.org
> > http://noxrepo.org/mailman/listinfo/nox-dev
>
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[nox-dev] nox api development

2012-01-18 Thread edward wilson
hi,
Currently im using NOX 0.9.0(zaku)~full~beta (nox_core), compiled Jan  3
2012 15:21:13
Compiled with OpenFlow 0x01

Now i have developed this api for getting aggregrate table stats
1. def aggregate_timer(self, dp):
flow = ofp_match()
flow.dl_type=ethernet.ethernet.IP_TYPE
flow.nw_proto=ipv4.ipv4.ICMP_PROTOCOL
self.ctxt.send_aggregate_stats_request(dp, flow, 0xff)
self.post_callback(MONITOR_TABLE_PERIOD, lambda :
self.aggregate_timer(dp))

Now when i connect nox controller to switch and display the aggregrate
statistics i get
Aggregate stats in from datapath 2c:27:d7:1d:08:7d
packet_count-- 0
flow_count-- 0
byte_count-- 0
however i have a rule with nw_proto=icmp and dl_type=ip, and packets do
match this rule but still statistics are displayed as zero.


2. Even if i use following definition
def aggregate_timer(self, dp):
flow = ofp_match()
flow.wildcards=0x
self.ctxt.send_aggregate_stats_request(dp, flow, 0xff)
self.post_callback(MONITOR_TABLE_PERIOD, lambda :
self.aggregate_timer(dp)
now in this case statistics should be displayed for all rules but again the
aggregrate statistics displayed are zero.
Aggregate stats in from datapath 2c:27:d7:1d:08:7d
packet_count-- 0
flow_count-- 0
byte_count-- 0

Please let me know if am missing something.

regards
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev