Module: Staypuft::Deployment::IpAddressValidator

Includes:
IpCheck
Included in:
CinderService::Equallogic::SanIpValueValidator, NeutronService::Cisconexus::IpValueValidator, NeutronService::N1kvIpAddressValidator
Defined in:
app/models/staypuft/deployment/ip_address_validator.rb

Constant Summary

Constants included from IpCheck

Staypuft::Deployment::IpCheck::INVALID_IP_OR_FQDN_MSG, Staypuft::Deployment::IpCheck::NOT_RANGE_MSG

Instance Method Summary collapse

Methods included from IpCheck

#check_ip_or_hostname

Instance Method Details

#validate_each(record, attribute, value) ⇒ Object



5
6
7
8
# File 'app/models/staypuft/deployment/ip_address_validator.rb', line 5

def validate_each(record, attribute, value)
  return if value.empty?
  check_ip_or_hostname(record, attribute, value)
end