Project

General

Profile

« Previous | Next » 

Revision 6a2fce1f

Added by Marek Hulán over 9 years ago

Fixes #9497 - Require MAC for managed BMC

View differences:

app/models/nic/bond.rb
validates :mode, :presence => true, :inclusion => { :in => MODES }
validates :attached_devices, :format => { :with => /\A[a-z0-9#{SEPARATOR}.:_-]+\Z/ }, :allow_blank => true
before_save :ensure_virtual
before_validation :ensure_virtual
register_to_enc_transformation :type, lambda { |type| type.constantize.humanized_name }

Also available in: Unified diff