I am using
Net::Netconf::Manager
to query a device with RPC commands. In the RPC commands I should send a list of arguments, so I'm adding query arguments in a hash. One such argument is verbosity_level
Please note I am using underscore _
in this argument. When I print the hash, it is still underscore.
But when I print the XML RPC request that is sent to the device, the argument is changed to verbosity-level
<verbosity-level>abcd</verbosity-level>
instead of
<verbosity_level>abcd</verbosity_level>
So the device says it does not know such argument.
Why is the underscore gets converted to hyphen?