libyang is a YANG data modelling language parser and toolkit written (and providing API) in C. WWW: https://github.com/CESNET/libyang