remove extra ==

This commit is contained in:
KF7EEL 2021-12-02 19:21:32 -08:00
parent 7781f97f48
commit 8447269c54
1 changed files with 2 additions and 2 deletions

View File

@ -455,7 +455,7 @@ def mirror_traffic(_data):
def gen_proxy_unit(UNIT): def gen_proxy_unit(UNIT):
NEW_UNIT = copy.deepcopy(UNIT) NEW_UNIT = copy.deepcopy(UNIT)
for u in UNIT: for u in UNIT:
if u == LOCAL_CONFIG['SYSTEMS'][u]['MODE'] == 'PROXY': if LOCAL_CONFIG['SYSTEMS'][u]['MODE'] == 'PROXY':
_prox_n = LOCAL_CONFIG['SYSTEMS'][u]['INTERNAL_PORT_STOP'] - LOCAL_CONFIG['SYSTEMS'][u]['INTERNAL_PORT_START'] _prox_n = LOCAL_CONFIG['SYSTEMS'][u]['INTERNAL_PORT_STOP'] - LOCAL_CONFIG['SYSTEMS'][u]['INTERNAL_PORT_START']
_count_n = 0 _count_n = 0
while _count_n < _prox_n: while _count_n < _prox_n:
@ -466,7 +466,7 @@ def gen_proxy_unit(UNIT):
NEW_UNIT.append(u + '-' + str(_count_n)) NEW_UNIT.append(u + '-' + str(_count_n))
_count_n = _count_n + 1 _count_n = _count_n + 1
NEW_UNIT.remove(u) NEW_UNIT.remove(u)
## print(NEW_UNIT)
return NEW_UNIT return NEW_UNIT
# Import Bridging rules # Import Bridging rules