03-01-2017 07:42 PM
As we know, yang-gen used by Opendaylight that converge yang to java api(https://wiki.opendaylight.org/view/YANG_Tools:YANG_to_Java_Mapping). So my question is that what is the difference between yang-gen and ydk-gen ? Can use yang-gen in ydk-gen for support Java.
Solved! Go to Solution.
03-02-2017 05:08 PM
Hi Hao,
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. As Anton mentioned above, 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).
03-02-2017 12:35 AM
Hi. 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 I think) 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.
I dont know much about the opendayligth but it seems to me as controller for everything. I dont know for what of the functions it offers it is parsing yang to java. If its goal is same as ydk-gen (to generate API which simplify writing apps) then we can say these are similar products. But I dont think you can generate java api in opendaylight and use it in ydk, because ydk-gen generate specific ydk api with all the benefits I described above.
Hope it helps
EDIT: seems Cisco is also using opendaylight
03-02-2017 05:20 PM
Thanks. Got it.
03-02-2017 05:08 PM
Hi Hao,
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. As Anton mentioned above, 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).
03-02-2017 05:21 PM
Thanks. Got it.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide