Optimization: Added mountpoint cache as yang flag YANG_FLAG_MTPOINT_POTENTIAL
Filter state-data w xpath
This commit is contained in:
parent
012158fb24
commit
e619632ac7
7 changed files with 44 additions and 12 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue