Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-247

Failed to compile container's child leaf node with enum type when they have the same name

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Won't Do
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 8308

    Description

      1.Yang file :

      container apple {

      leaf apple {

      type enumeration {
      enum red

      { value 0 ; }

      enum green

      { value 1 ; }

      }
      }
      }

      2. Compiling error:
      [ERROR] /home/workspace/code/bier-c/common/models/ietf-multicast-information-2016-10-28/target/generated-sources/mdsal-binding/org/opendaylight/yang/gen/v1/urn/yang/test/container/leaf/same/test/rev170425/Apple.java:[87,88] cannot find symbol
      [ERROR] symbol: class Apple
      [ERROR] location: interface org.opendaylight.yang.gen.v1.urn.yang.test.container.leaf.same.test.rev170425.Apple
      [ERROR] /home/workspace/code/bier-c/common/models/ietf-multicast-information-2016-10-28/target/generated-sources/mdsal-binding/org/opendaylight/yang/gen/v1/urn/yang/test/container/leaf/same/test/rev170425/Apple.java:[30,12] interface org.opendaylight.yang.gen.v1.urn.yang.test.container.leaf.same.test.rev170425.Apple is already defined in package

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            gu.min1@zte.com.cn GU Min
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: