[pox-dev] Requesting port statistics (problem with connection)
Tmusic
Tmusic987 at gmail.com
Thu Oct 4 08:39:29 PDT 2012
Hi,
I'm trying to query the switches for port statistics, but I experience some
problems with the connections to the switches.
#Ask switches for their port stats periodically (ignore the arg, it was for
testing the Timer function)
def periodic_event(arg):
print 'timer_event:',arg
Timer(5, periodic_event, args = ['Requesting stats'])
topology = core.components['topology']
for switch in topology.getEntitiesOfType(Switch):
msg=of.ofp_port_stats_request()
switch.send(msg)
print 'request send'
def _handle_port_stats(event):
print 'port statistics message received'
I get no stats and following output (one switch connected in mininet):
timer_event: Requesting stats
INFO:openflow.of_01:[Con 1/1] closing connection
request send
INFO:openflow.of_01:[Con 2/1] Connected to 00-00-00-00-00-01
WARNING:openflow.topology:Switch 00-00-00-00-00-01 connected, but... it's
already connected!
INFO:openflow.topology:Switch 00-00-00-00-00-01 connected
timer_event: Requesting stats
INFO:openflow.of_01:[Con 2/1] closing connection
request send
INFO:openflow.of_01:[Con 3/1] Connected to 00-00-00-00-00-01
WARNING:openflow.topology:Switch 00-00-00-00-00-01 connected, but... it's
already connected!
INFO:openflow.topology:Switch 00-00-00-00-00-01 connected
Any ideas?
Thank you in advance,
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/private.cgi/pox-dev-noxrepo.org/attachments/20121004/47283c05/attachment.htm>
More information about the pox-dev
mailing list