Revision 05848084
Added by Timo Goebel about 8 years ago
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
fixes #14638 - Refactor Subnet into STI to allow different subnet types