fw6: adaptation au cas sans rid
This commit is contained in:
parent
7b0adb2ea9
commit
4bffa3ece1
2 changed files with 8 additions and 0 deletions
|
@ -44,6 +44,8 @@ Usage:
|
|||
def ports(dev_ip6, dev_list):
|
||||
''' Ouvre les ports '''
|
||||
for machine in machines :
|
||||
if not machine.rid():
|
||||
continue
|
||||
for type_machine in ['fil', 'adherents-v6', 'wifi', 'wifi-adh-v6', 'serveurs']:
|
||||
for plage in rid[type_machine]:
|
||||
if int(machine.rid()) in range(plage[0], plage[1]):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue