Method: Rbeapi::Api::EthernetInterface#create

Defined in:
lib/rbeapi/api/interfaces.rb

#create(name) ⇒ Object

create overrides the create method from the BaseInterface and raises an exception because Ethernet interface creation is not supported.

Parameters:

  • :name (String)

    The name of the interface

Raises:

  • (NotImplementedError)

    Creation of physical Ethernet interfaces is not supported



433
434
435
436
# File 'lib/rbeapi/api/interfaces.rb', line 433

def create(name)
  raise NotImplementedError, 'creating Ethernet interfaces is '\
        'not supported'
end