- Timestamp:
- May 8, 2013, 6:29:39 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/syntax-checker.py
r10904 r12291 9 9 __version__ = '$Id$' 10 10 11 allowed_multi_use = ['0.0.0.0', '192.168.1. 100']11 allowed_multi_use = ['0.0.0.0', '192.168.1.', '192.168.178.'] 12 12 13 13 def check_double_ip(): … … 39 39 for addr,leden in pool.iteritems(): 40 40 if len(leden) > 1: 41 if not a ddr in allowed_multi_use:41 if not any(map(lambda x: addr.startswith(x), allowed_multi_use)): 42 42 print "[ERROR] Multiple usages of IP %s:" % (addr) 43 43 print " -", "\n - ".join(leden)
Note:
See TracChangeset
for help on using the changeset viewer.