Module: Netconf::RPC
- Defined in:
- lib/net/netconf/rpc.rb,
lib/net/netconf/rpc_std.rb
Defined Under Namespace
Modules: Builder, Standard
Classes: Executor
Constant Summary
collapse
- MSG_END =
']]>]]>'
- MSG_END_RE =
/\]\]>\]\]>[\r\n]*$/
- MSG_CLOSE_SESSION =
'<rpc><close-session/></rpc>'
- MSG_HELLO =
<<-EOM
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>urn:ietf:params:netconf:base:1.0</capability>
</capabilities>
</hello>
EOM
Class Method Summary
collapse
Class Method Details
.add_attributes(ele_nx, attr_h) ⇒ Object
6
7
8
|
# File 'lib/net/netconf/rpc.rb', line 6
def RPC.add_attributes( ele_nx, attr_h )
attr_h.each{ |k,v| ele_nx[k] = v }
end
|
.get_exception(rpc_nx) ⇒ Object
14
15
16
|
# File 'lib/net/netconf/rpc.rb', line 14
def RPC.get_exception( rpc_nx )
rpc_nx.instance_variable_get(:@netconf_exception) || Netconf::RpcError
end
|
.set_exception(rpc_nx, exception) ⇒ Object
10
11
12
|
# File 'lib/net/netconf/rpc.rb', line 10
def RPC.set_exception( rpc_nx, exception )
rpc_nx.instance_variable_set(:@netconf_exception, exception )
end
|