diff --git a/heat/engine/constraint/common_constraints.py b/heat/engine/constraint/common_constraints.py index cef2571414..427342447e 100644 --- a/heat/engine/constraint/common_constraints.py +++ b/heat/engine/constraint/common_constraints.py @@ -106,7 +106,7 @@ class CIDRConstraint(constraints.BaseCustomConstraint): def validate(self, value, context, template=None): try: - netaddr.IPNetwork(value, implicit_prefix=True) + netaddr.IPNetwork(netaddr.cidr_abbrev_to_verbose(value)) msg = validators.validate_subnet(value) if msg is not None: self._error_message = msg