Ask Your Question

Is Yang only required for Netconf?

asked 2015-02-20 03:29:22 -0700

rmohamed gravatar image


Could you please help me what is the use of Yang and Is it only required for Netconf? How to expose REST API without Yang. Please correct me if i am wrong.

Thanks, Riyaz

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-02-20 03:52:48 -0700

faizan gravatar image

No, Yang are also used to generate model classes also. when you build module it generates java classes. YANG Tools is a infrastructure project aiming to develop necessary tooling and libraries providing support of NETCONF and YANG for Java (JVM-language based) projects and applications, such as Model Driven SAL for Controller (which uses YANG as it's modeling language) and Netconf / OFConfig plugins. Refer : YANG to Java Mapping.

edit flag offensive delete publish link more


Thanks Faizan for your quick reply. Could you please tell me do we need to write Yang model to expose REST API from own bundle. If yes how to map this REST API "/restconf/operational/opendaylight-inventory:nodes" in ODL code to write our own Yang model.

rmohamed ( 2015-02-20 21:58:03 -0700 )edit

Thanks Faizan. Able to understand the basic project setup and Yang Model with below link

rmohamed ( 2015-03-02 03:19:12 -0700 )edit

@rmohamed :) Yes i was suppose to share the same link but copied the wrong url :) Happy Learning

faizan ( 2015-03-02 21:27:13 -0700 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


Asked: 2015-02-20 03:29:22 -0700

Seen: 214 times

Last updated: Feb 20 '15