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

Fix bended implementation of handleUnknownNode in YangParserListenerImpl

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: PC

    Description

      Currently the YangParserListenerImpl is implemented in way that if yang model contains extensions (ie unknown nodes) and extensions contains arguments and value of the extension argument is sperated by ":" the argument value is evaluated as prefix:value. The worst thing is that during parsing of such arguments the parser expects that "prefix" part of argument is real prefix and should be defined within import statements in yang model.

      The evaluation of extension argumenst in this way works only for config subsystem but can severely crash parsing in case when yang model contain extension which represents mapping in extension argument as key:value etc and does not contain any import definition.

      Currently this is handled by workaround done by fix: https://git.opendaylight.org/gerrit/#/c/9808/

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              lsedlak@cisco.com Lukas Sedlak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: