[YANGTOOLS-7] Wrong package imported when multiple augment-of-augment used Created: 13/Aug/13  Updated: 10/Apr/22  Resolved: 22/Aug/13

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Robert Varga Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: File topology-tunnel-p2p.yang     File topology-tunnel.yang    
External issue ID: 41

 Description   

The two attached models cause code generator to spew invalid code. It fails to compile:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project pcep-api: Compilation failure: Compilation failure:
[ERROR] /home/nite/bgpcep/pcep/api/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/topology/tunnel/p2p/rev2013812/TunnelTypes1.java:[6,122] package org.opendaylight.yang.gen.v1.urn.TBD.params.xml.ns.yang.network.topology.rev2013712.network.topology.topology.link does not exist
[ERROR] /home/nite/bgpcep/pcep/api/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/topology/tunnel/p2p/rev2013812/TunnelTypes1.java:[8,64] cannot find symbol
[ERROR] symbol: class TunnelTypes
[ERROR] /home/nite/bgpcep/pcep/api/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/topology/tunnel/p2p/rev2013812/Paths1.java:[6,122] package org.opendaylight.yang.gen.v1.urn.TBD.params.xml.ns.yang.network.topology.rev2013712.network.topology.topology.link does not exist
[ERROR] /home/nite/bgpcep/pcep/api/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/topology/tunnel/p2p/rev2013812/Paths1.java:[8,58] cannot find symbol
[ERROR] symbol: class Paths



 Comments   
Comment by Robert Varga [ 13/Aug/13 ]

Attachment topology-tunnel.yang has been added with description: Augmentation of network-topology.yang

Comment by Robert Varga [ 13/Aug/13 ]

Attachment topology-tunnel-p2p.yang has been added with description: Augmentation of topology-tunnel

Comment by Martin Vitez [ 22/Aug/13 ]

Not occur anymore. Probably fixed in some former patch.

Generated at Wed Feb 07 20:52:00 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.