Due to a ransomware attack, the wiki was reverted to a July 2022 version. . We apologize for the lack of a more recent valid backup.
...
Code Block |
---|
COMPILE_DEPS = [ '//lib:CORE_DEPS', '//lib:onos-yang-model', ] yang_osgi_jar( deps = COMPILE_DEPS, name = 'onos-apps-l3vpn-yangmodel', srcs = glob(['src/main/**/*.yang']), visibility = [ 'PUBLIC' ], ) |
Step 2: Create a folder structure as “src/main/yang” in the test app folder and place your YANG files in it.
Step 3 : Build using buck build onos command. Generated java code will be placed in default directory or in desired destination folder configured by user.
Yang Maven Plugin :
Step1 : Create a test app and add YANG tools maven plugin to pom file’s build section
...