parser yang BUGFIX missing check extensions in augment statement and apply extensions in refine statements
diff --git a/src/parser_yang.c b/src/parser_yang.c
index 19631ea..fcfdc8a 100644
--- a/src/parser_yang.c
+++ b/src/parser_yang.c
@@ -2543,6 +2543,10 @@
}
}
+ if (lyp_rfn_apply_ext(module)) {
+ goto error;
+ }
+
/* check correctness of includes */
if (lyp_check_include_missing(module)) {
goto error;
@@ -3813,6 +3817,10 @@
goto error;
}
+ if (yang_check_ext_instance(module, &augment->ext, augment->ext_size, augment, unres)) {
+ goto error;
+ }
+
if (augment->when && yang_check_ext_instance(module, &augment->when->ext, augment->when->ext_size, augment->when, unres)) {
goto error;
}