timer work... no TX-based reset yet.
This commit is contained in:
parent
43e2411f3e
commit
9b72e99a60
@ -342,6 +342,7 @@ class bridgeIPSC(IPSC):
|
|||||||
if _dst_group in rule['ON']:
|
if _dst_group in rule['ON']:
|
||||||
# Set the matching rule as ACTIVE
|
# Set the matching rule as ACTIVE
|
||||||
rule['ACTIVE'] = True
|
rule['ACTIVE'] = True
|
||||||
|
rule['TIMER'] = _now + rule['TIMEOUT']
|
||||||
logger.info('(%s) Primary Bridge Rule \"%s\" changed to state: %s', _network, rule['NAME'], rule['ACTIVE'])
|
logger.info('(%s) Primary Bridge Rule \"%s\" changed to state: %s', _network, rule['NAME'], rule['ACTIVE'])
|
||||||
|
|
||||||
# Set reciprocal rules for other IPSCs as ACTIVE
|
# Set reciprocal rules for other IPSCs as ACTIVE
|
||||||
@ -349,6 +350,7 @@ class bridgeIPSC(IPSC):
|
|||||||
for target_rule in RULES[_target]['GROUP_VOICE']:
|
for target_rule in RULES[_target]['GROUP_VOICE']:
|
||||||
if target_rule['NAME'] == rule['NAME']:
|
if target_rule['NAME'] == rule['NAME']:
|
||||||
target_rule['ACTIVE'] = True
|
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'])
|
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
|
# TGID matches an DE-ACTIVATION trigger
|
||||||
|
Loading…
x
Reference in New Issue
Block a user