Some devices have configs that do not have corresponding YANG statements. This can be partly solved by a slight twist to CLICON_YANG_UNKNOWN_ANYDATA but then it applies globally, which have the sideeffects of not detecting erroneous XML.
Instead, add a device / device-profile addition to yang-config enum, eg:
enum BIND_UNKNOWN_ANYDATA{
description
"Bind YANG model to config, but do not validate
Also, treat unknown XML nodes as YANG anydata
Downside is: sanity checks of erroneous XML may not be properly detected, and may not be edited by the autocli;
}
Some devices have configs that do not have corresponding YANG statements. This can be partly solved by a slight twist to
CLICON_YANG_UNKNOWN_ANYDATA
but then it applies globally, which have the sideeffects of not detecting erroneous XML. Instead, add a device / device-profile addition to yang-config enum, eg: