Optimization: Added mountpoint cache as yang flag YANG_FLAG_MTPOINT_POTENTIAL

Filter state-data w xpath
This commit is contained in:
Olof hagsand 2023-12-11 22:05:16 +01:00
parent 012158fb24
commit e619632ac7
7 changed files with 44 additions and 12 deletions

View file

@ -83,7 +83,14 @@
* leaf z;
* }
*/
#define YANG_FLAG_MOUNTPOINT 0x100 /* Mark node as ACTUAL populated mount-point
#define YANG_FLAG_MTPOINT_POTENTIAL 0x100 /* Mark node as POTENTIAL mount-point, ie it fulfils:
* - is CONTAINER or LIST, AND
* - has YANG schema mount "mount-point" as child element, AND
* - the extension label matches y (see note below)
* Set by ys_populate2
* Read by yang_schema_mount_point
*/
#define YANG_FLAG_MOUNTPOINT 0x200 /* Mark node as ACTUAL populated mount-point
* Set by yang_mount_set
* Read by ys_free1
*/

View file

@ -54,6 +54,7 @@
/*
* Prototypes
*/
int yang_schema_mount_point0(yang_stmt *y);
int yang_schema_mount_point(yang_stmt *y);
int yang_mount_get(yang_stmt *yu, char *xpath, yang_stmt **yspec);
int yang_mount_set(yang_stmt *yu, char *xpath, yang_stmt *yspec);