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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide