Class: Rbeapi::Api::Aaa

Inherits:
Entity
  • Object
show all
Defined in:
lib/rbeapi/api/aaa.rb

Overview

The Aaa class manages Authorization, Authentication and Accounting (AAA) on an EOS node.

Instance Attribute Summary

Attributes inherited from Entity

#config, #error, #node

Instance Method Summary collapse

Methods inherited from Entity

#command_builder, #configure, #configure_interface, #get_block, #initialize, instance

Constructor Details

This class inherits a constructor from Rbeapi::Api::Entity

Instance Method Details

#getObject



44
45
46
47
48
# File 'lib/rbeapi/api/aaa.rb', line 44

def get
  response = {}
  response[:groups] = groups.getall
  response
end

#groupsObject



50
51
52
53
54
# File 'lib/rbeapi/api/aaa.rb', line 50

def groups
  return @groups if @groups
  @groups = AaaGroups.new node
  @groups
end