add reporting loop to bridge.py

This commit is contained in:
Cort Buffington 2015-06-30 19:29:59 -05:00
parent 1285ddedff
commit 354fa34e8a
1 changed files with 5 additions and 0 deletions

View File

@ -356,4 +356,9 @@ if __name__ == '__main__':
networks[ipsc_network] = bridgeIPSC(ipsc_network)
reactor.listenUDP(NETWORK[ipsc_network]['LOCAL']['PORT'], networks[ipsc_network], interface=NETWORK[ipsc_network]['LOCAL']['IP'])
# INITIALIZE THE REPORTING LOOP IF CONFIGURED
if REPORTS['REPORT_NETWORKS']:
reporting = task.LoopingCall(reporting_loop)
reporting.start(REPORTS['REPORT_INTERVAL'])
reactor.run()