Revised CLICON_YANG_UNKNOWN_ANYDATA patch: dont allow new nodes after initial startup

This commit is contained in:
Olof hagsand 2020-07-23 17:04:12 +02:00
parent 316cad35ff
commit 36576143b5
3 changed files with 75 additions and 21 deletions

View file

@ -843,6 +843,13 @@ main(int argc,
goto done;
/* if status = STARTUP_INVALID, cbret contains info */
}
/*
* Disable unknown to anydata auto-creation after startup
*/
if (clicon_option_bool(h, "CLICON_YANG_UNKNOWN_ANYDATA") == 1){
clicon_option_bool_set(h, "CLICON_YANG_UNKNOWN_ANYDATA", 0);
xml_bind_yang_unknown_anydata(0);
}
/* Merge extra XML from file and reset function to running
*/
if (status == STARTUP_OK && startup_mode != SM_NONE){