Method: Rbeapi::Api::Bgp#create

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

#create(bgp_as) ⇒ Boolean

create will create a new instance of BGP routing on the node.

Parameters:

  • :bgp_as (String)

    The BGP autonomous system number to be configured for the local BGP routing instance.

Returns:

  • (Boolean)

    returns true if the command completed successfully



144
145
146
147
# File 'lib/rbeapi/api/bgp.rb', line 144

def create(bgp_as)
  value = bgp_as
  configure("router bgp #{value}")
end