resources/switchconfig.rb
##
# Instance of Rbeapi::Client::switch used to sending and receiving
# eAPI messages.  In addition, the switch object provides access to
# Ruby Client for eAPI API modules used to configure EOS resources.
#
# @return [switch] An instance of Rbeapi::Client::switch used to send
#   and receive eAPI messages.
Instance of Rbeapi::Client::switch used to sending and receiving
eAPI messages.  In addition, the switch object provides access to
Ruby Client for eAPI API modules used to configure EOS resources.
Instance of Rbeapi :: Client :: switch used to sending and receiving eAPI messages . In addition the switch object provides access to Ruby Client for eAPI API modules used to configure EOS resources .
def switch
  return @switch if @switch
  Rbeapi::Client.load_config(ENV['RBEAPI_CONF']) if ENV['RBEAPI_CONF']
  connection_name = ENV['RBEAPI_CONNECTION'] || switch_name || 'localhost'
  @switch = Rbeapi::Client.connect_to(connection_name)
end
def switch return @switch if @switch Rbeapi :: Client . load_config ( ENV [ 'RBEAPI_CONF' ] ) if ENV [ 'RBEAPI_CONF' ] connection_name = ENV [ 'RBEAPI_CONNECTION' ] || switch_name || 'localhost' @switch = Rbeapi :: Client . connect_to ( connection_name ) end
Instance of Rbeapi::Client::switch used to sending and receiving
eAPI messages.
Instance of Rbeapi :: Client :: switch used to sending and receiving eAPI messages .
An instance of Rbeapi::Client::switch used to send and receive eAPI messages.
An instance of Rbeapi :: Client :: switch used to send and receive eAPI messages .
switch