netopeer2 icon indicating copy to clipboard operation
netopeer2 copied to clipboard

RPC related query

Open shikha-jindal opened this issue 3 years ago • 5 comments

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.

o-ran-software-management.txt

shikha-jindal avatar Apr 08 '22 09:04 shikha-jindal

Surely your NETCONF client knows which operation it has just requested, right?

jktjkt avatar Apr 08 '22 09:04 jktjkt

yes.

so there is no other way to know which rpc , response belongs to ?/

shikha-jindal avatar Apr 08 '22 10:04 shikha-jindal

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?

michalvasko avatar Apr 08 '22 10:04 michalvasko

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

masif-cs avatar Apr 11 '22 11:04 masif-cs

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.

michalvasko avatar Apr 11 '22 11:04 michalvasko