cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
535
Views
0
Helpful
2
Replies

deref doesn't work in rpc

kuiliu
Cisco Employee
Cisco Employee

Hi Guys,

 

I was trying to create rpc, one leaf of input was defined with path of deref. I can get compile successful however the dereferenced path won't work there. Does anyone has run into the same issue?

2 Replies 2

rogaglia
Cisco Employee
Cisco Employee

Hi,

 

There was a bug that was fixed last year. Just make sure you are using the latest NSO version or else please provide some information on what is not working for you.

 

Roque

Hi Rogaglia,

I'm working on ncs-4.7, I tried the same group in the service, deref works, but when it is applied in rpc, what I'm getting for xpath log is
get_elem(/allocate-id/id-pool-instance) = not_found

the part of yang for rpc is
grouping id-alloco-rpc-request {
leaf id-pool-instance {
// mandatory true;
type leafref {
path "/rm:resource-manager/rm:id-allocator/rm:pool-instance/rm:instance-name";
}
}
list query-path-args {
when "../id-pool-instance";
key query-name;
leaf query-name {
type leafref {
path "deref(../../id-pool-instance)/../existing-query/query-name";
}
}
leaf-list args {
type string;
}
}
}
//allocation rpc
rpc allocate-id {
tailf:actionpoint allocate-id-point;
input {
uses id-alloco-rpc-request;
}
output {
leaf allocted-id {
type string;
}
}
}
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: