revert the change of monitoring all ports to only tap ports

parent 2b22d608
......@@ -58,7 +58,6 @@ class SimpleMonitor(simple_switch_13.SimpleSwitch13):
def _monitor(self):
while True:
for dp in self.datapaths.values():
'''
portList = tapDB.getTapPortsForSwitch({'dpid':dpid_to_str(dp.id)})
for port in portList:
self._request_stats(dp, port)
......@@ -69,6 +68,7 @@ class SimpleMonitor(simple_switch_13.SimpleSwitch13):
self._request_mstats(dp, meterID);
'''
self._request_stats(dp, dp.ofproto.OFPP_ANY)
'''
hub.sleep(10)
def _request_mstats(self, datapath, meterID):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment