Ask Your Question
0

Yang model and APIs

asked 2014-08-20 07:04:36 -0700

anonymous user

Anonymous

updated 2014-08-20 07:08:52 -0700

Hi, I am new to OpenDaylight, yang tools, and java programming.

I was going through the Ping tutorial ( https://wiki.opendaylight.org/view/Ping ). At the beginning, the yang definition for ping and a pom.xml file are given. Then the API (OSGI??) bundle is generated with the Maven build tool. My question is where is the Yang Tool being used or called to create the 'generated API definition' before being fed into Maven build tool (as specified in https://wiki.opendaylight.org/images/3/39/Plugindesign process.png)? It seems like it is missing the Yang Tools step (The url above should read https://wiki.opendaylight.org/images/3/39/Plugin 'underscore' design 'underscore' process.png. The underscores are missing).

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-08-20 21:08:16 -0700

Madhu gravatar image

YangTools is executed via yang-maven-plugin which automates the Yang related build process and streamlines the build procedure when you execute mvn clean install on the project. For this model-ping project, please refer to the Parent project which points to model-parent project in controller repository. Please refer to the Yang-tools plugin defined here.

  <plugin>
    <groupId>org.opendaylight.yangtools</groupId>
    <artifactId>yang-maven-plugin</artifactId>
    ...
    ...
  </plugin>

The tutorial covers rest of the details I believe.

edit flag offensive delete publish link more

Your Answer

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

Add Answer

[hide preview]

Stats

Asked: 2014-08-20 07:04:36 -0700

Seen: 202 times

Last updated: Aug 20 '14