Method: Rbeapi::Api::Ipinterfaces#delete

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

#delete(name) ⇒ Boolean

delete will delete an existing IP interface in the node’s current configuration. If the IP interface does not exist on the specified interface, this method will still return success. This command will default the interface back to being a switchport.

Parameters:

  • :name (String)

    The full interface name of the port to delete the logical interface from. The name must be the full interface name

Returns:

  • (Boolean)

    returns true if the commands complete successfully



190
191
192
# File 'lib/rbeapi/api/ipinterfaces.rb', line 190

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