I'm confused on the structure for part 1 of the md-sal toaster tutorial.
src/main/yang/toaster.yang
pom.xml
or is it
api/src/main/yang/toaster.yang
pom.xml
When I mvn clean install
with the 1st one, the project builds but does not generate any java code. The second does not build but based on the tutorial, it should work.
Also, can I build this project from anywhere or does it need to be built in the controller/opendaylight/md-sal/
path?
You can build the project from anywhere. In the checked-in Toaster project (part of Controller), the YANG module is in src/main/yang/toaster.yang
. If you build that project (the toaster
module), you’ll find the generated Java code in target/generated-sources/mdsal-binding/org/opendaylight/yang/gen/v1/http/netconfcentral/org/ns/toaster/rev091120/
.