Method: Rbeapi::Api::Bgp#delete

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

#deleteBoolean

delete will delete the BGP routing instance from the node.

Returns:

  • (Boolean)

    returns true if the command completed successfully



156
157
158
159
160
# File 'lib/rbeapi/api/bgp.rb', line 156

def delete
  config = get
  return true unless config
  configure("no router bgp #{config[:bgp_as]}")
end