Fixes bug 957708.
Work around bug in netaddr 0.7.5 https://github.com/drkjam/netaddr/issues/2 Change-Id: I3e064860c3865d5029481e6d63c5284d275a0081
This commit is contained in:
@@ -1219,6 +1219,10 @@ def is_valid_cidr(address):
|
||||
netaddr.IPNetwork(address)
|
||||
except netaddr.core.AddrFormatError:
|
||||
return False
|
||||
except UnboundLocalError:
|
||||
# NOTE(MotoKen): work around bug in netaddr 0.7.5 (see detail in
|
||||
# https://github.com/drkjam/netaddr/issues/2)
|
||||
return False
|
||||
|
||||
# Prior validation partially verify /xx part
|
||||
# Verify it here
|
||||
|
||||
Reference in New Issue
Block a user