Method: Cisco::TacacsGlobal#encryption_key_set
- Defined in:
- lib/cisco_node_utils/tacacs_global.rb
#encryption_key_set(key_format, key) ⇒ Object
94 95 96 97 98 99 100 101 102 103 |
# File 'lib/cisco_node_utils/tacacs_global.rb', line 94 def encryption_key_set(key_format, key) key = Utils.add_quotes(key) if key_format == TACACS_GLOBAL_ENC_UNKNOWN config_set('tacacs_server', 'encryption', state: 'no', option: key_format, key: key) else config_set('tacacs_server', 'encryption', state: '', option: key_format, key: key) end end |