Netconfessor is fork of discontinued JNC from Tail-f Systems (c)
Netconfessor is NETCONF protocol client. Transport layer uses Ganymed SSH-2 library.
The project consists of 2 parts:
core- client partgen- pyang plugin for generation Java code from.yangfiles
Install pyang for Python 2.7
$ pip install pyang==1.7.3
Build java sources
$ gradle build
-
Add the file
gen/src/main/yangdirectory -
Add name of the file in
build.gradleofgenmodule in taskyang.If module has dependencies, you should add them too.
HashSet<String> yangs = [ "your-module.yang" ]- Run gradle task
gradle yang
You can also add files in test source set (gen/src/test/yang) for testing generated classes.
See RoboCop's basic API tests here