We have a requirement where we need to access the message-id of a NETCONF RPC request in the actionpoint callback that the application implements.
Could you please let us know if there is a way to pass the message-id of the RPC request to the actionpoint callback?
For example, if we assume the sample RPC request as below, we would like to pass “Reboot2” (message-id) to the callback.
<rpc message-id="Reboot2" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> ... </rpc>
We want to store the message-id in the application which implements the actionpoint (action callback) and use the message-id to generate a few NETCONF notifications so that the northbound system can correlate the notifications to the RPC and take appropriate actions.
Please let us know if there is a way to achieve this. We want to avoid adding a custom message-id in the input of RPC, since there is already a message-id available.