I would like to know whether C/C++ source code could be auto-generated based on yang file using confdc like creating C header file using “confdc --emit-h dhcpd.h dhcpd.yang”.
If not using confdc, then any other command will help to create auto-generated code.
confdc doesn’t have an option to auto generate C code or other types of code.
The reason being is because code design is highly tied to each user’s preference.
There is a way you can write a plugin to pyang (an open source YANG parser) that would allow you to generate code that will fit better for your system.