The ydk-api generate is "/interfaces". How to append the origin yang name "/openconfig-interfaces:" to the path.
i.e., to generate path '/openconfig-interfaces:interfaces/'.
Are you referring in the RPC? It is captured as the origin:
=============== Get Request Sent ================ path { origin: "openconfig-interfaces" elem { name: "interfaces" } } encoding: JSON_IETF 2020-02-20 19:34:47,233 - ydk - INFO - ============= Get Response Received ============= notification { timestamp: 1582256075784914578 update { path { origin: "openconfig-interfaces" elem { name: "interfaces" } } val { json_ietf_val: " // snipped " } } } error { }
The YDK builds the path internally based on provided model API object. Therefore it is not clear from your post, what are you trying to accomplish. Could you please elaborate on your task and script.
Thanks, Fixed by handling "origin" in gnmi-server.