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.
190 191 192 |
# File 'lib/rbeapi/api/ipinterfaces.rb', line 190 def delete(name) configure(["interface #{name}", 'no ip address', 'switchport']) end |