bridge_rules.py and dmrlink.cfg checking
exit if the IPSCs in dmrlink.cfg (or specified file) don’t match the IPSCs specified in bridge_rules.py
This commit is contained in:
parent
6612ba70ef
commit
b7f6b62993
@ -79,7 +79,11 @@ for _ipsc in RULES:
|
||||
_rule['DST_GROUP'] = hex_str_3(_rule['DST_GROUP'])
|
||||
_rule['SRC_TS'] = _rule['SRC_TS'] - 1
|
||||
_rule['DST_TS'] = _rule['DST_TS'] - 1
|
||||
|
||||
if _ipsc not in NETWORK:
|
||||
sys.exit('ERROR: Bridge rules found for an IPSC network not configured in main configuration')
|
||||
for _ipsc in NETWORK:
|
||||
if _ipsc not in RULES:
|
||||
sys.exit('ERROR: Bridge rules not found for all IPSC network configured')
|
||||
|
||||
# Import List of Bridges
|
||||
# This is how we identify known bridges. If one of these is present
|
||||
|
Loading…
x
Reference in New Issue
Block a user