Comments (5)
Hi I've said it before - and say it again - the yang->java converter part of JNC isn't actively maintained by anyone. The code is clearly looking for a maintainer. I guess it's kind of working, for some yang files, but probably not for all. OTOH, now with free (as in beer) ConfD available, it's more than possible for someone to step up as JNC pyang plugin maintainer.
from jnc.
Hi,
Thanks for your response.
Can you suggest me any other way to convert yang model in java model or you can suggest some other library other than pyang.
from jnc.
If you share your Yang model with me (maybe offline if you prefer) I can
have a look at it.
OTOH, I'm not really in favour of the whole approach here, the idea of
turning the yang models into Java classes sound better than it is.
Try to use the JNC lib as it is - the text based DOM that is used
by the client lib itself is pretty nice.
/klacke
On 02/03/16 05:10, vishwaraths wrote:
Hi,
Thanks for your response.
Can you suggest me any other way to convert yang model in java model or
you can suggest some other library other than pyang.—
Reply to this email directly or view it on GitHub
#63 (comment).
from jnc.
Hi,
This is my Yang file
`module arpe {
namespace "http://tail-f.com/ns/example/arpe";
prefix arpe;
import ietf-inet-types {
prefix inet;
}
import tailf-common {
prefix tailf;
}
container arpentries {
config false;
tailf:callpoint arpe;
list arpe {
key "ip ifname";
max-elements 1024;
leaf ip {
type inet:ip-address;
}
leaf ifname {
type string;
}
leaf hwaddr {
type string;
mandatory true;
}
leaf permanent {
type boolean;
mandatory true;
}
leaf published {
type boolean;
mandatory true;
}
}
}
}
`
from jnc.
Ok, I haven't tried with your module here, what I did try though
was the code in examples/0-intro
Try to add your module to that example, that seems to work just
fine.
What didn't work for me, where I got bad import statements was
the code in e.g tests/1-test-union
There are slightly different flags given to the jnc plugin
in those two examples. Seems as if the tests dir is broken.
As I've said before - the jnc.py plugin isn't properly
maintained, whereas the JNC lib under jnc/src/com/tailf/jnc/
is.
/klacke
On 02/03/16 12:03, vishwaraths wrote:
Hi,
This is my Yang file
`module arpe {
namespace "http://tail-f.com/ns/example/arpe";
prefix arpe;import ietf-inet-types {
prefix inet;
}
import tailf-common {
prefix tailf;
}container arpentries {
config false;
tailf:callpoint arpe;
list arpe {
key "ip ifname";
max-elements 1024;
leaf ip {
type inet:ip-address;
}
leaf ifname {
type string;
}
leaf hwaddr {
type string;
mandatory true;
}
leaf permanent {
type boolean;
mandatory true;
}
leaf published {
type boolean;
mandatory true;
}
}
}
}
`—
Reply to this email directly or view it on GitHub
#63 (comment).
from jnc.
Related Issues (20)
- 1-interfaces example re-defines standard modules
- raw input to subscribers is broken
- jnc.py does not generate correct Java `import` statements for typedefs from imported modules
- `FramingTest.java` seems to use Java 11 features in "Java 8" declared JNC library HOT 1
- Path tokenizer encodes a string to bytes just to decode it back later.
- Device.connect got stuck HOT 3
- Error during generating .java classes for yang files using jnc HOT 4
- Typedef is not converted to Java class HOT 1
- NPE on getting attribute which doesn't exist HOT 3
- pyang_jnc : Convert multiple yang files at once HOT 1
- New session creation is failing HOT 24
- Getting "Key exchange was not finished, connection is closed" exception HOT 4
- Session closed HOT 5
- convert `trace` to `slf4j`
- Device.close HOT 6
- JNC device connect failing during callhome for sha256 kex new algorithm. HOT 3
- top-level container's class not generated
- close method on SSHSession.java HOT 3
- JNC & python supported version / requirement HOT 1
- JNC & Java supported version / requirement HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jnc.