Added new DOMAIN level in YANG spec structure

This commit is contained in:
Olof hagsand 2024-10-06 09:18:24 +02:00
parent 0c8aef0291
commit f0bd103e79
17 changed files with 201 additions and 68 deletions

View file

@ -498,7 +498,7 @@ main(int argc,
goto done;
/* Create top-level yang spec and store as option */
if ((yspec = yspec_new(h, YANG_DATA_TOP)) == NULL)
if ((yspec = yspec_new1(h, YANG_DOMAIN_TOP, YANG_DATA_TOP)) == NULL)
goto done;
/* Initialize plugin module by creating a handle holding plugin and callback lists */

View file

@ -967,7 +967,7 @@ restconf_clixon_init(clixon_handle h,
if (yang_metadata_init(h) < 0)
goto done;
/* Create top-level yang spec and store as option */
if ((yspec = yspec_new(h, YANG_DATA_TOP)) == NULL)
if ((yspec = yspec_new1(h, YANG_DOMAIN_TOP, YANG_DATA_TOP)) == NULL)
goto done;
/* Load restconf plugins before yangs are loaded (eg extension callbacks) */