Closed herunkang2018 closed 1 year ago
Apologies for late response, the project was kind of on hiatus for a while. Do you still see the problem, even with recent changes? As you write, generated classes extend YangElement
which extends Element
, so you should not see it. Feel free to reopen if you still do.
Hi ALL,
I am starting to manage openvswitch with of-config, and the of-config is about two part: a ofc-server to connect to ovsdb(a datastore server for ovs) and a netconf agent using netconf protocol to interact with a netconf maneger like JNC.
My problem is that when I use pyang JNC plugin and of-config's yang schema to generate java classes, and using these classes to my project according to the example, it says
the code is:
CapableSwitch csTest = (CapableSwitch) config;
the example code is like this:
and I find that CapableSwitch just extends YangElement, but it can't cast to Element class so I can't using the generated classes to modify configuration.
Any reply is appreciated!