@@ -848,17 +848,15 @@ static void be_client_handle_rpc(struct mgmt_be_client *client, uint64_t txn_id,
848848 * It is especially needed for actions, because their parents
849849 * may hold necessary information.
850850 */
851- err = lyd_new_path2 (NULL , ly_native_ctx , xpath , NULL , 0 , 0 , 0 ,
852- NULL , & input );
851+ err = yang_new_path2 (NULL , ly_native_ctx , xpath , NULL , 0 , 0 , 0 , NULL , & input );
853852 }
854853 if (err ) {
855854 be_client_send_error (client , txn_id , rpc_msg -> req_id , false, - EINVAL ,
856855 "Can't parse RPC data for: %s" , xpath );
857856 return ;
858857 }
859858
860- err = lyd_new_path2 (NULL , ly_native_ctx , xpath , NULL , 0 , 0 , 0 , NULL ,
861- & output );
859+ err = yang_new_path2 (NULL , ly_native_ctx , xpath , NULL , 0 , 0 , 0 , NULL , & output );
862860 if (err ) {
863861 lyd_free_all (input );
864862 be_client_send_error (client , txn_id , rpc_msg -> req_id , false,
@@ -1223,8 +1221,8 @@ static enum nb_error clients_client_state_candidate_config_version_get(
12231221 else
12241222 value = __be_client -> running_config -> version ;
12251223
1226- if (lyd_new_term_bin (parent , snode -> module , snode -> name , & value , sizeof (value ),
1227- LYD_NEW_PATH_UPDATE , NULL ))
1224+ if (yang_new_term_bin (parent , snode -> module , snode -> name , & value , sizeof (value ),
1225+ LYD_NEW_PATH_UPDATE , NULL ))
12281226 return NB_ERR_RESOURCE ;
12291227
12301228 return NB_OK ;
@@ -1240,8 +1238,8 @@ static enum nb_error clients_client_state_running_config_version_get(const struc
12401238 const struct lysc_node * snode = nb_node -> snode ;
12411239 uint64_t value = __be_client -> running_config -> version ;
12421240
1243- if (lyd_new_term_bin (parent , snode -> module , snode -> name , & value , sizeof (value ),
1244- LYD_NEW_PATH_UPDATE , NULL ))
1241+ if (yang_new_term_bin (parent , snode -> module , snode -> name , & value , sizeof (value ),
1242+ LYD_NEW_PATH_UPDATE , NULL ))
12451243 return NB_ERR_RESOURCE ;
12461244
12471245 return NB_OK ;
0 commit comments