Details
-
Improvement
-
Status: Resolved
-
Resolution: Won't Do
-
None
-
None
-
None
-
None
-
Operating System: Mac OS
Platform: PC
Description
If I have a model like:
augment "/inv:nodes/inv:node" {
ext:augment-identifier "node-meter-statistics";
container meter-statistics
{ //config "false"; uses meter-types:meter-statistics-reply; }}
The generated MeterStatistics when added to a Node:
nodeData.addAugmentation(NodeMeterStatistics.class, meterStats.build());
Results in an exception on commit:
2013-11-29 18:15:25.098 IST [pool-18-thread-4] ERROR o.o.c.s.b.d.s.i.TransformerGenerator - Cannot compile DOM Codec for interface org.opendaylight.yang.gen.v1.urn.opendaylight.meter.statistics.rev131111.NodeMeterStatistics
javassist.CannotCompileException: by javassist.CannotCompileException: [source error] no such field: org/opendaylight/yang/gen/v1/urn/opendaylight/meter/statistics/rev131111/NodeMeterStatistics$QNAME
Because NodeMeter Statistics is generated without a QNAME. Is that same container is wrapped in at the top level of the grouping:
meter-types:meter-statistics-reply
Then the grouping gets a QNAME and a pure 'uses' augmentation works.