def __ipv4_netmask(value):
 (valid, errmsg) = (False, 'dotted quad or integer CIDR (0->32)')
 (valid, value, _) = __int(value)
 if (not (valid and (0 <= value <= 32))):
  valid = salt.utils.validate.net.netmask(value)
 return (valid, value, errmsg)

def __ipv4_netmask ( value ) : ( valid , errmsg ) = ( False , 'dotted quad or integer CIDR (0->32)' ) ( valid , value , _ ) = __int ( value ) if ( not ( valid and ( 0 <= value <= 32 ) ) ) : valid = salt . utils . validate . net . netmask ( value ) return ( valid , value , errmsg )
validate an ipv4 dotted quad or integer cidr netmask .