Method: Rbeapi::Api::Bgp#delete

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

#deleteBoolean

delete will delete the BGP routing instance from the node.

Commands

no router bgp <bgp_as>

Returns:

  • (Boolean)

    Returns true if the command completed successfully.



254
255
256
257
258
# File 'lib/rbeapi/api/bgp.rb', line 254

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