diff --git a/aci-preupgrade-validation-script.py b/aci-preupgrade-validation-script.py index 4789331..d4b5de6 100644 --- a/aci-preupgrade-validation-script.py +++ b/aci-preupgrade-validation-script.py @@ -416,6 +416,8 @@ def get_network_binary(cls, ip, pfxlen): @classmethod def ip_in_subnet(cls, ip, subnet): + if "/" not in subnet: + return False subnet_ip, subnet_pfxlen = subnet.split("/") subnet_network = cls.get_network_binary(subnet_ip, subnet_pfxlen) ip_network = cls.get_network_binary(ip, subnet_pfxlen)