Changed YANG uses/grouping to keep uses statement and flag it with YANG_FLAG_USES_EXP

Updated yang code headers
This commit is contained in:
Olof hagsand 2023-07-18 14:47:42 +02:00
parent e0cbc10fad
commit d48442960e
4 changed files with 172 additions and 146 deletions

View file

@ -70,6 +70,19 @@
* Transformed to ANYDATA but some code may need to check
* why it is an ANYDATA
*/
#define YANG_FLAG_GROUPING 0x80 /* Mark node as uses/grouping expansion:
* 1) for uses: this uses is expanded
* 2) for grouping: all uses below are expanded
* 3) other nodes: expanded from previous uses
* container x {
* ...
* uses y; YANG_FLAG_GROUPING (1)
* leaf z; YANG_FLAG_GROUPING (3)
* ...
* group y { YANG_FLAG_GROUPING (2)
* leaf z;
* }
*/
/*
* Types