It compiles!
This commit is contained in:
parent
a4d3664d6c
commit
94d48c8396
@ -114,10 +114,14 @@ def make_bridges(_rules):
|
||||
return _rules
|
||||
|
||||
#Make a single bridge - used for on-the-fly UA bridges
|
||||
def make_single_bridge(_tgid,_rules):
|
||||
_bridge[_tgid] = []
|
||||
for _system['SYSTEM'] in CONFIG['SYSTEMS']:
|
||||
_bridge[_tgid][
|
||||
def make_single_bridge(_tgid):
|
||||
BRIDGES[_tgid] = []
|
||||
for _system in CONFIG['SYSTEMS']:
|
||||
if _system['MODE'] == 'OPENBRIDGE':
|
||||
continue
|
||||
|
||||
BRIDGES[_tgid].append = {'SYSTEM': _tgid, 'TS': 1, 'TGID': _tgid,'ACTIVE': True,'TIMEOUT': 240,'TO_TYPE': 'NONE','OFF': [],'ON': [],'RESET': []}
|
||||
|
||||
|
||||
# Run this every minute for rule timer updates
|
||||
def rule_timer_loop():
|
||||
@ -491,6 +495,10 @@ class routerHBP(HBSYSTEM):
|
||||
else:
|
||||
self.STATUS[_slot]['RX_LC'] = LC_OPT + _dst_id + _rf_src
|
||||
|
||||
#Create default bridge for unknown TG
|
||||
if _dst_id not in BRIDGES:
|
||||
make_single_bridge(_dst_id)
|
||||
|
||||
for _bridge in BRIDGES:
|
||||
for _system in BRIDGES[_bridge]:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user