Method: Rbeapi::Api::Switchports#delete

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

#delete(name) ⇒ Boolean

Deletes a logical switchport interface from the running-config.

Parameters:

  • name (String)

    The name of the logical interface.

Returns:

  • (Boolean)

    Returns True if it succeeds otherwise False.



213
214
215
# File 'lib/rbeapi/api/switchports.rb', line 213

def delete(name)
  configure ["interface #{name}", 'no switchport']
end