Revision 44e19b35
Added by Michael Moll about 4 years ago
app/models/subnet/ipv6.rb | ||
---|---|---|
has_many :hosts, :through => :interfaces
|
||
has_many :primary_hosts, :through => :primary_interfaces, :source => :host
|
||
|
||
validate :validate_eui64_prefix_length, :if => Proc.new { |subnet| subnet.ipam == IPAM::MODES[:eui64]}
|
||
validate :validate_eui64_prefix_length, :if => Proc.new { |subnet| subnet.ipam == IPAM::MODES[:eui64] }
|
||
validates :mtu, :numericality => {:only_integer => true, :greater_than_or_equal_to => 1280, :less_than_or_equal_to => 4294967295}
|
||
|
||
def family
|
Also available in: Unified diff
Fixes #19792 - Fix Layout/SpaceInsideBlockBraces cop