Method: Bandshell::WiredConnection#validate

Defined in:
lib/bandshell/netconfig.rb

#validateObject



199
200
201
202
203
204
205
206
207
# File 'lib/bandshell/netconfig.rb', line 199

def validate
  if @interface_name != ''
    if self.class.interfaces.find {
          |iface| iface.name == @interface_name
        }.nil?
      fail "The interface doesn't exist on the system"
    end
  end
end