Method: Rbeapi::Api::Managementdefaults#get

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

#getnil, Hash<Symbol, Object] returns the nodes current running configuration as a Hash. If management defaults are not configured on the node this method will return nil.

get scans the current nodes configuration and returns the values as a Hash describing the current state.

Examples:

{
  secret_hash: <string>
}

Returns:

  • (nil, Hash<Symbol, Object] returns the nodes current running configuration as a Hash. If management defaults are not configured on the node this method will return nil.)

    nil, Hash<Symbol, Object] returns the nodes current running configuration as a Hash. If management defaults are not configured on the node this method will return nil.



58
59
60
61
62
63
# File 'lib/rbeapi/api/managementdefaults.rb', line 58

def get
  config = get_block('management defaults')

  settings = {}
  settings.merge!(parse_secret_hash(config))
end