Adapt to cligen parse API

This commit is contained in:
Olof hagsand 2023-06-28 10:56:52 +02:00
parent 79d1d2e95a
commit e1a8e0d40b
3 changed files with 9 additions and 9 deletions

View file

@ -1404,7 +1404,7 @@ yang2cli_yspec(clicon_handle h,
}
/* Parse the buffer using cligen parser. load cli syntax */
if (cligen_parse_str(cli_cligen(h), cbuf_get(cb), "yang2cli", pt, NULL) < 0){
if (clispec_parse_str(cli_cligen(h), cbuf_get(cb), "yang2cli", NULL, pt, NULL) < 0){
fprintf(stderr, "%s\n", cbuf_get(cb));
goto done;
}