Class: Cisco::AaaAuthenticationLogin
- Inherits:
-
NodeUtil
- Object
- NodeUtil
- Cisco::AaaAuthenticationLogin
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
config_get, #config_get, config_get_default, #config_get_default, #config_set, config_set, #node, node, #show
Class Method Details
.ascii_authentication ⇒ Object
rubocop:disable DoubleNegation There is no “feature aaa” or “aaa new-model” on nxos, and only one instance which is always available
29
30
31
|
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 29
def self.ascii_authentication
!!config_get('aaa_authentication_login', 'ascii_authentication')
end
|
.ascii_authentication=(val) ⇒ Object
33
34
35
36
37
|
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 33
def self.ascii_authentication=(val)
no_cmd = val ? '' : 'no'
config_set('aaa_authentication_login',
'ascii_authentication', no_cmd)
end
|
.chap ⇒ Object
44
45
46
|
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 44
def self.chap
!!config_get('aaa_authentication_login', 'chap')
end
|
.chap=(val) ⇒ Object
48
49
50
51
|
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 48
def self.chap=(val)
no_cmd = val ? '' : 'no'
config_set('aaa_authentication_login', 'chap', no_cmd)
end
|
.default_ascii_authentication ⇒ Object
39
40
41
42
|
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 39
def self.default_ascii_authentication
config_get_default('aaa_authentication_login',
'ascii_authentication')
end
|
.default_chap ⇒ Object
53
54
55
|
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 53
def self.default_chap
config_get_default('aaa_authentication_login', 'chap')
end
|
.default_error_display ⇒ Object
66
67
68
|
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 66
def self.default_error_display
config_get_default('aaa_authentication_login', 'error_display')
end
|
.default_mschap ⇒ Object
79
80
81
|
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 79
def self.default_mschap
config_get_default('aaa_authentication_login', 'mschap')
end
|
.default_mschapv2 ⇒ Object
92
93
94
|
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 92
def self.default_mschapv2
config_get_default('aaa_authentication_login', 'mschapv2')
end
|
.error_display ⇒ Object
57
58
59
|
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 57
def self.error_display
!!config_get('aaa_authentication_login', 'error_display')
end
|
.error_display=(val) ⇒ Object
61
62
63
64
|
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 61
def self.error_display=(val)
no_cmd = val ? '' : 'no'
config_set('aaa_authentication_login', 'error_display', no_cmd)
end
|
.mschap ⇒ Object
70
71
72
|
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 70
def self.mschap
!!config_get('aaa_authentication_login', 'mschap')
end
|
.mschap=(val) ⇒ Object
74
75
76
77
|
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 74
def self.mschap=(val)
no_cmd = val ? '' : 'no'
config_set('aaa_authentication_login', 'mschap', no_cmd)
end
|
.mschapv2 ⇒ Object
83
84
85
|
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 83
def self.mschapv2
!!config_get('aaa_authentication_login', 'mschapv2')
end
|
.mschapv2=(val) ⇒ Object
87
88
89
90
|
# File 'lib/cisco_node_utils/aaa_authentication_login.rb', line 87
def self.mschapv2=(val)
no_cmd = val ? '' : 'no'
config_set('aaa_authentication_login', 'mschapv2', no_cmd)
end
|