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

Parser accepts invalid models

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 4646

    Description

      yang/yang-parser-impl/src/test/resources/type-tests/types.yang contains:

      leaf leaf-decimal64 {
      type decimal64

      { fraction-digits 2; range "1 .. 3.14 | 10 | 20..max"; description "test decimal64"; reference "test decimal64 ref"; status current; }

      }

      which clearly violates RFC6020, yet the parser accepts it silently. It should reject the model due to invalid statements being present 'type' statement. Audit and fix all similar failures to validate statement appropriateness.

      Attachments

        Issue Links

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

          Activity

            People

              filip.gregor@pantheon.tech Filip Gregor
              rovarga Robert Varga
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: