Method: Rbeapi::Api::BaseInterface#create

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

#create(value) ⇒ Boolean

create will create a new interface resource in the node’s current configuration with the specified interface name. If the create method is called and the interface already exists, this method will return successful.

Parameters:

  • value (String)

    The interface name to create on the node. The interface name must be the full interface identifier (ie Loopback, not Lo).

Returns:

  • (Boolean)

    Returns true if the command completed successfully.

Since:

  • eos_version 4.13.7M



280
281
282
# File 'lib/rbeapi/api/interfaces.rb', line 280

def create(value)
  configure("interface #{value}")
end