RPC related query
Hi
We have three RPC named software-download, software-install and software-activate.
but rpc response is same for all three rpc as follows
<status xmlns="urn:o-ran:software-management:1.0">STARTED</status>
response will be for the RPC which we sent but there can be other scenarios also so Is there any way to figure out that to which RPC this response belongs to?? Please find attached yang for reference.
Surely your NETCONF client knows which operation it has just requested, right?
yes.
so there is no other way to know which rpc , response belongs to ?/
I don't understand your exact use-case. In NETCONF, you pair RPC with its reply using message-id. In libnetconf2 you need to have the RPC to get a reply for it so it is automatically paired. When exactly are you confused as to what RPC a received reply belongs to?
Hi @michalvasko Actually we have 3 different RPC which has same input and output parameters. Now we want to identify which RPC response is received without checking which RPC we have sent.
Is there any way to identify that? Or is there any way to get the RPC name in the xml output? Like in our case RPC name is software-install software-download software-activate
Look at the example in the RFC. The only way to pair RPC with a reply is using message-id value, which must be the same.