fw6: adaptation au cas sans rid

This commit is contained in:
Daniel STAN 2014-12-10 22:58:09 +01:00
parent 7b0adb2ea9
commit 4bffa3ece1
2 changed files with 8 additions and 0 deletions

View file

@ -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]):