02-20-2020 02:03 PM
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/'.
02-20-2020 07:38 PM
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 { }
02-22-2020 08:35 AM
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.
02-24-2020 10:24 AM
Thanks, Fixed by handling "origin" in gnmi-server.
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 community: