Class: Cisco::AaaAuthenticationLogin

Inherits:
NodeUtil
  • Object
show all
Defined in:
lib/cisco_node_utils/aaa_authentication_login.rb

Overview

NXAPI implementation of AAA Authentication Login class

Class Method Summary collapse

Methods inherited from NodeUtil

#client, client, #config_get, config_get, #config_get_default, config_get_default, config_set, #config_set, #get, #ios_xr?, #nexus?, node, #node, platform, #platform, supports?, #supports?

Class Method Details

.ascii_authenticationObject

There is no “feature aaa” or “aaa new-model” on nxos, and only one instance which is always available


28
29
30
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 28

def self.ascii_authentication
  config_get('aaa_authentication_login', 'ascii_authentication')
end

.ascii_authentication=(val) ⇒ Object


32
33
34
35
36
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 32

def self.ascii_authentication=(val)
  no_cmd = val ? '' : 'no'
  config_set('aaa_authentication_login',
             'ascii_authentication', no_cmd)
end

.chapObject


43
44
45
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 43

def self.chap
  config_get('aaa_authentication_login', 'chap')
end

.chap=(val) ⇒ Object


47
48
49
50
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 47

def self.chap=(val)
  no_cmd = val ? '' : 'no'
  config_set('aaa_authentication_login', 'chap', no_cmd)
end

.default_ascii_authenticationObject


38
39
40
41
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 38

def self.default_ascii_authentication
  config_get_default('aaa_authentication_login',
                     'ascii_authentication')
end

.default_chapObject


52
53
54
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 52

def self.default_chap
  config_get_default('aaa_authentication_login', 'chap')
end

.default_error_displayObject


65
66
67
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 65

def self.default_error_display
  config_get_default('aaa_authentication_login', 'error_display')
end

.default_mschapObject


78
79
80
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 78

def self.default_mschap
  config_get_default('aaa_authentication_login', 'mschap')
end

.default_mschapv2Object


91
92
93
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 91

def self.default_mschapv2
  config_get_default('aaa_authentication_login', 'mschapv2')
end

.error_displayObject


56
57
58
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 56

def self.error_display
  config_get('aaa_authentication_login', 'error_display')
end

.error_display=(val) ⇒ Object


60
61
62
63
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 60

def self.error_display=(val)
  no_cmd = val ? '' : 'no'
  config_set('aaa_authentication_login', 'error_display', no_cmd)
end

.mschapObject


69
70
71
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 69

def self.mschap
  config_get('aaa_authentication_login', 'mschap')
end

.mschap=(val) ⇒ Object


73
74
75
76
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 73

def self.mschap=(val)
  no_cmd = val ? '' : 'no'
  config_set('aaa_authentication_login', 'mschap', no_cmd)
end

.mschapv2Object


82
83
84
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 82

def self.mschapv2
  config_get('aaa_authentication_login', 'mschapv2')
end

.mschapv2=(val) ⇒ Object


86
87
88
89
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 86

def self.mschapv2=(val)
  no_cmd = val ? '' : 'no'
  config_set('aaa_authentication_login', 'mschapv2', no_cmd)
end