Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-69

Parsing of identical augmentations from different models fails

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: Linux
      Platform: PC

    • 280
    • High

    Description

      Having model ROOT and two models A and B (all three different namespace), if A and B have the same augment instruction to augment ROOT, the parsing fails with error:

      [ERROR] yang-to-sources: Unable to parse yang files
      org.opendaylight.yangtools.yang.parser.util.YangParseException: Error in module 'pcep-ietf-stateful' at line 321: Failed to perform augmentation: Error in module 'pcep-message' at line 28: Can not add 'container lsp-db-version' to 'container tlvs' in module 'pcep-message': node with same name already declared at line 28

      commit: https://git.opendaylight.org/gerrit/#/c/4140/

      model A:
      augment "/msg:open/msg:open-message/msg:open/msg:tlvs"

      { uses lsp-db-version-tlv; uses predundancy-group-id-tlv; uses stateful-capability-tlv; }

      model B:
      augment "/msg:open/msg:open-message/msg:open/msg:tlvs"

      { uses stateful-capability-tlv; uses lsp-db-version-tlv; }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            dkutenicsova Dana Kutenicsova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: