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

Generated code conflict not reported by yangtools

    XMLWordPrintable

Details

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

    Description

      When using sal code generator with yang maven plugin on a yang file with typedef and grouping sharing the same name, no warning is produced and only the code for typedef is generated.

      example yang file content:

      typedef network-topology-ref

      { type instance-identifier; ... }

      grouping network-topology-ref {
      leaf network-topology-ref

      { type network-topology-ref; mandatory true; ... }

      }

      The generated code for this yang contains only one class named NetworkTopologyRef for the typedef.

      A warning about this would be welcomed.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mmarsale@cisco.com Maros Marsalek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: