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

malformed union type not caught at compile time

    XMLWordPrintable

Details

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

    • 4310

    Description

      I (mis)defined a union as this (missing 'type' keywords inside the union):

      leaf datapath-id {
      type union

      { yang-types:hex-string; uint64; }

      The parser did not complain, but at run time i got the following exception:

      2015-09-14 19:41:54,787 | WARN | bundle-tracker-0 | YangParserImpl | 79 - org.opendaylight.yangtools.yang-parser-impl - 0.8.0.SNAPSHOT | Error in module of-l3-topology at line 89: Failed to resolve node urn:ietf:params:xml:ns:yang:ietf-yang-types:hex-string : no such extension definition found.
      2015-09-14 19:41:54,787 | WARN | bundle-tracker-0 | YangParserImpl | 79 - org.opendaylight.yangtools.yang-parser-impl - 0.8.0.SNAPSHOT | Error in module of-l3-topology at line 90: Failed to resolve node urn:opendaylight:openflow-pce-topology:uint64 : no such extension definition found.
      2015-09-14 19:41:55,054 | WARN | bundle-tracker-0 | YangParserImpl | 79 - org.opendaylight.yangtools.yang-parser-impl - 0.8.0.SNAPSHOT | Error in module of-l3-topology at line 89: Failed to resolve node urn:ietf:params:xml:ns:yang:ietf-yang-types:hex-string : no such extension definition found.
      2015-09-14 19:41:55,054 | WARN | bundle-tracker-0 | YangParserImpl | 79 - org.opendaylight.yangtools.yang-parser-impl - 0.8.0.SNAPSHOT | Error in module of-l3-topology at line 90: Failed to resolve node urn:opendaylight:openflow-pce-topology:uint64 : no such extension definition found.
      2015-09-14 19:41:55,386 | WARN | bundle-tracker-0 | YangParserImpl | 79 - org.opendaylight.yangtools.yang-parser-impl - 0.8.0.SNAPSHOT | Error in module of-l3-topology at line 89: Failed to resolve node urn:ietf:params:xml:ns:yang:ietf-yang-types:hex-string : no such extension definition found.
      2015-09-14 19:41:55,386 | WARN | bundle-tracker-0 | YangParserImpl | 79 - org.opendaylight.yangtools.yang-parser-impl - 0.8.0.SNAPSHOT | Error in module of-l3-topology at line 90: Failed to resolve node urn:opendaylight:openflow-pce-topology:uint64 : no such extension definition found.
      2015-09-14 19:41:55,878 | WARN | ty-notifications | YangParserImpl | 79 - org.opendaylight.yangtools.yang-parser-impl - 0.8.0.SNAPSHOT | Error in module of-l3-topology at line 89: Failed to resolve node urn:ietf:params:xml:ns:yang:ietf-yang-types:hex-string : no such extension definition found.
      2015-09-14 19:41:55,878 | WARN | ty-notifications | YangParserImpl | 79 - org.opendaylight.yangtools.yang-parser-impl - 0.8.0.SNAPSHOT | Error in module of-l3-topology at line 90: Failed to resolve node urn:opendaylight:openflow-pce-topology:uint64 : no such extension definition found.

      The parser should catch this syntax error.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              jmedved@cisco.com Jan Medved
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: