Project

General

Profile

« Previous | Next » 

Revision 05848084

Added by Timo Goebel about 8 years ago

fixes #14638 - Refactor Subnet into STI to allow different subnet types

View differences:

lib/net/dhcp/record.rb
def initialize(opts = { })
super(opts)
self.mac = validate_mac self.mac
self.network = validate_network self.network
self.ip = validate_ip self.ip
self.mac = Net::Validations.validate_mac! self.mac
self.network = Net::Validations.validate_network! self.network
self.ip = Net::Validations.validate_ip! self.ip
end
def to_s

Also available in: Unified diff