restconf bugs and increased restconf testing

This commit is contained in:
Olof hagsand 2017-11-19 12:40:32 +01:00
parent 496d676ad3
commit 8b6bb6ff50
5 changed files with 39 additions and 32 deletions

View file

@ -171,6 +171,7 @@ api_data_get_gen(clicon_handle h,
yspec = clicon_dbspec_yang(h);
if ((path = cbuf_new()) == NULL)
goto done;
cprintf(path, "/");
if (api_path2xpath_cvv(yspec, pcvec, pi, path) < 0){
notfound(r);
goto done;