Method: Cisco::Node#config
- Defined in:
- lib/cisco_node_utils/node.rb
#config(commands) ⇒ Object
Send a config command to the device. In general, clients should use config_set() rather than calling this function directly.
262 263 264 265 266 267 |
# File 'lib/cisco_node_utils/node.rb', line 262 def config(commands) CiscoLogger.debug("CLI Sent to device: #{commands}") @client.config(commands) rescue CiscoNxapi::CliError => e raise Cisco::CliError.new(e.input, e.clierror, e.previous) end |