Hi Baraki, I think the issue might be this line: > flow.dl_source = NONE Can you try it without that?
Also those LLDP packets could be coming from the discovery module if you are running that. Otherwise they might be coming from a flowvisor if you are also running that. Aaron On Mon, Mar 5, 2012 at 7:01 PM, Baraki Halefom <bara...@gmail.com> wrote: > Hi every one, > > Apart from aggregate statistics I want to retrieve flows from switches. > To do that I am running my component along with monitoring component in the > command line. > In my component I have the following code: > > # to send flow stats request > def send_flow_stats_request(): > global xid > flow = of.ofp_match() > flow.wildcards = of.OFPFW_ALL > flow.dl_source = NONE > flow.dl_type = ethernet.IP_TYPE > inst.Monitoring.send_flow_stats_request(dpid,flows,0xff,xid) > xid +=1 > # to handle flow stats in > def flow_stats_in_handler(dpid, flows, more, xid): > print"\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Flow statistics report > ^^^^^^^^^^^^^" > print "from %s: size %s:" % dpid,str(flows) > print "number of flow %s: " % flows['flow_count'] > #data =0; > #ELEPHANT_FLOW_THRESHOLD = 500 > for i, flw in flows: > num_bytes = flw['byte_count'] > num_packets = flw['packet_count'] > print "Byte -size: %s , pakcet size: %s "% > longlong_to_octstr(num_byte) > if num_bytes > ELEPHANT_FLOW_THRESHOLD: > inport = flows[i]['match']['in_port'] > flow = flows[i]['match'] > actions = [] > #do sth with the flow here > I have also set appropriate call back timers. > > So the question is I am not getting the flows. I am able to get aggregate > flow stats and port stats with the same approach. > can any one please tell me where I did the mistake. > > Also which component is printing the following message: > [(XEROX CORPORATION):00:00:0c>01:23:20:00:00:01:LLDP]<chassis > ID:64:70:69:64:3a:63><port ID:00:06><ttl:120><tlv end> > when I run my component a bunch of this text is displayed in the screen. > > Sincerely, > > > > -- > > > Baraki H. Abay > Department of Math and Computer science > North Carolina Central University > Durham, 27707 NC > > > _______________________________________________ > nox-dev mailing list > nox-dev@noxrepo.org > http://noxrepo.org/mailman/listinfo/nox-dev > -- 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