Class: Netconf::NetconfClient::GetConfigResponse

Inherits:
RpcResponse
  • Object
show all
Defined in:
lib/util/client/netconf/netconf_client.rb

Overview

Parse configuration responses, using REXML xpath queries to pull configuration data from the response

Instance Attribute Summary collapse

Attributes inherited from RpcResponse

#errors

Instance Method Summary collapse

Methods inherited from RpcResponse

#errors?, #errors_as_string, #response

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



257
258
259
# File 'lib/util/client/netconf/netconf_client.rb', line 257

def config
  @config
end

Instance Method Details

#config_as_stringObject



259
260
261
262
263
264
265
# File 'lib/util/client/netconf/netconf_client.rb', line 259

def config_as_string
  o = StringIO.new
  @config.each do |ce|
    o.write(ce)
  end
  o.string
end