timer work... no TX-based reset yet.

This commit is contained in:
Cort Buffington 2016-08-06 11:15:54 -05:00
parent 43e2411f3e
commit 9b72e99a60
1 changed files with 2 additions and 0 deletions

View File

@ -342,6 +342,7 @@ class bridgeIPSC(IPSC):
if _dst_group in rule['ON']:
# Set the matching rule as ACTIVE
rule['ACTIVE'] = True
rule['TIMER'] = _now + rule['TIMEOUT']
logger.info('(%s) Primary Bridge Rule \"%s\" changed to state: %s', _network, rule['NAME'], rule['ACTIVE'])
# Set reciprocal rules for other IPSCs as ACTIVE
@ -349,6 +350,7 @@ class bridgeIPSC(IPSC):
for target_rule in RULES[_target]['GROUP_VOICE']:
if target_rule['NAME'] == rule['NAME']:
target_rule['ACTIVE'] = True
target_rule['TIMER'] = _now + target_rule['TIMEOUT']
logger.info('(%s) Reciprocal Bridge Rule \"%s\" in IPSC \"%s\" changed to state: %s', _network, target_rule['NAME'], _target, rule['ACTIVE'])
# TGID matches an DE-ACTIVATION trigger