Confd_cs_node_cd failure

Hello all,

After I designed below rpc command, I call the confd_cs_node_cd(“/run-test/value”) to get scheme of leaf for program acting dynamically.

But confd_cs_node_cd() function is failed.
So I tried to get node tree so I realized that “run-test” node has two children.
The first node is “value” node from input clause and second node also is “value” node from output clause.

I know the flag is difference of two node, one has CS_NODE_IS_PARAM, other has CS_NODE_IS_RESULT.
But I don’t want to do exception control for failure of confd_cs_node_cs().

Is there any way to get “value” from input clause like “/run-test/input:value” ?

rpc run-test {
  tailf:actionpoint run-test;
  input {
    leaf value {
      ...
    }
  }
  output {
    leaf value {
      ...
    }
  }
}

cd to the run-test node and traverse to the correct child node from there. See Action callbacks and output statement - #4 by per

Yeah, but This way is not looking neat in my opinion. :wink:
First, My program is removed dependency of Yang path, so every node is getting by confd_cs_node_cd().
So, if doing traverse, It need to be added in confd_cs_node_cd()'s failure action.

I guess there is no other option to deal with it.

Thank you for reply.