- yang-gen is used by Open daylight that converge yang to java api(https://wiki.opendaylight.org/view/YANG_Tools:YANG_to_Java_Mapping).
- Question is that what is the difference between yang-gen and ydk-gen. Can we use yang-gen in ydk-gen for support Java.
Ydk-gen is part of YDK. You can read about YDK here but in summary ydk-gen allows you to generate API from any yang model. The API can be in any language (in theory, nowadays it supports cpp and python) and really helps you to write network automation applications without worrying about protocol,transport, coding/decoding netconf xml data, etc. This is already in the API and you can focus more to write the logic of your applications.
you cannot generate java api in opendaylight and use it in ydk, because ydk-gen generate specific ydk api with all the benefits mentioned above.
yang-gen and ydk-gen are unrelated.
Please refer to this post for an introduction: New to YDK and model-driven APIs?
Some documentation for ydk-gen is here in the github repository. currently, we have support for python and C++ language bindings. Since this project is open source, we welcome contributions to java language bindings using ydk-gen.
On a related note, it is currently possible to use OpenDaylight with the C++ bindings. See here (support for ODL in python is coming soon).
Please sign in to leave a comment.