libyang icon indicating copy to clipboard operation
libyang copied to clipboard

Why return failure when "deviate delete" a "mandatory" statement ?

Open lyzliyuzhi91 opened this issue 2 years ago • 1 comments

https://github.com/CESNET/libyang/blob/fc4dbd923e044006c93df020590a1e5a8656c09e/src/parser_yang.c#L3955

Why success for "must" but failure for "mandatory"/"min-element"/... ? thanks

lyzliyuzhi91 avatar Feb 05 '24 08:02 lyzliyuzhi91

In short, because in deviate-delete-stmt there is no mandatory in the YANG ABNF.

michalvasko avatar Feb 05 '24 08:02 michalvasko