code: def validate_ipv4_addr(value)
        ipaddr = IPAddr.new(value)
        unless ipaddr.ipv4?
          raise ValidationError, "IP address '#{value}' is not IPv4"
        end
        ipaddr
      rescue ArgumentError => e
        raise ValidationError, "invalid IPv4 address '#{value}' - #{e.message}"
      end
docs: Validate IPV4 using the standard "ipaddr" ruby module.