[YANGTOOLS-23] Uncompilable code generated when using augment-of-augment-with-uses Created: 26/Sep/13  Updated: 10/Apr/22  Resolved: 30/Sep/13

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

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

Operating System: All
Platform: All


Attachments: File bgp-linkstate.yang     File bgp-message.yang     File bgp-multiprotocol.yang    
External issue ID: 85

 Description   

Replacing the marked 'choice' in attached bgp-multiprotocol.yang with 'uses destination' leads to non-compilable code, because it attempts to import non-existing package.

[ERROR] /home/nite/bgpcep/bgp/parser-api/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/bgp/linkstate/rev130918/update/path/attributes/mp/unreach/nlri/withdrawn/routes/nlri/LinkstateBuilder.java:[5,150] package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev130918.update.path.attributes.mp.unreach.nlri.withdrawn.routes does not exist
[ERROR] /home/nite/bgpcep/bgp/parser-api/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/bgp/linkstate/rev130918/update/path/attributes/mp/unreach/nlri/withdrawn/routes/nlri/Linkstate.java:[5,150] package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev130918.update.path.attributes.mp.unreach.nlri.withdrawn.routes does not exist
[ERROR] /home/nite/bgpcep/bgp/parser-api/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/bgp/linkstate/rev130918/update/path/attributes/mp/unreach/nlri/withdrawn/routes/nlri/Linkstate.java:[17,9] cannot find symbol
[ERROR] symbol: class Nlri
[ERROR] /home/nite/bgpcep/bgp/parser-api/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/bgp/linkstate/rev130918/update/path/attributes/mp/reach/nlri/advertized/routes/nlri/Linkstate.java:[5,149] package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev130918.update.path.attributes.mp.reach.nlri.advertized.routes does not exist
[ERROR] /home/nite/bgpcep/bgp/parser-api/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/bgp/linkstate/rev130918/update/path/attributes/mp/reach/nlri/advertized/routes/nlri/Linkstate.java:[17,9] cannot find symbol
[ERROR] symbol: class Nlri
[ERROR] /home/nite/bgpcep/bgp/parser-api/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/bgp/linkstate/rev130918/update/path/attributes/mp/reach/nlri/advertized/routes/nlri/LinkstateBuilder.java:[5,149] package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev130918.update.path.attributes.mp.reach.nlri.advertized.routes does not exist



 Comments   
Comment by Robert Varga [ 26/Sep/13 ]

Attachment bgp-linkstate.yang has been added with description: Augment-of-augment-uses

Comment by Robert Varga [ 26/Sep/13 ]

Attachment bgp-multiprotocol.yang has been added with description: bgp-multiprotocol.yang

Comment by Robert Varga [ 26/Sep/13 ]

Attachment bgp-message.yang has been added with description: bgp-message.yang

Comment by Martin Vitez [ 30/Sep/13 ]

Fixed in yang-maven-plugin version 0.5.9-SNAPSHOT.

https://git.opendaylight.org/gerrit/#/c/1505/

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