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

grouping and leaf Can't have the same name?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 7135

      I get a Error when trying to parse a yang file like below:
      grouping pmf {
      leaf pmf {
      type enumeration {
      enum optional

      { description "pmf optional"; }

      enum mandatory

      { description "pmf mandatory"; }

      enum disable

      { description "undo pmf"; }

      }
      default disable;
      }
      }

      the error is:
      [ERROR] /D:/git/sd-campus/controller-naas/platform/southbound/adapter/synchronization-adapter/synchronization-adapter-model/src/main/yang-gen-sal/org/opendaylight/yang/gen/v1/com/huawei/controller/southbound/synchronization/rev160412/Pmf.java:[86,96] can not find symble
      [ERROR] symble: class Pmf
      [ERROR] position: interface org.opendaylight.yang.gen.v1.com.huawei.controller.southbound.synchronization.rev160412.Pmf
      [ERROR] /D:/git/sd-campus/controller-naas/platform/southbound/adapter/synchronization-adapter/synchronization-adapter-model/src/main/yang-gen-sal/org/opendaylight/yang/gen/v1/com/huawei/controller/southbound/synchronization/rev160412/Pmf.java:[30,12] have define the interface in the package: org.opendaylight.yang.gen.v1.com.huawei.controller.southbound.synchronization.rev160412org.opendaylight.yang.gen.v1.com.huawei.controller.southbound.synchronization.rev160412.Pmf

      Seems to be groung and leaf generated class of the same name, so the conflict.
      Is this a bug in yangtools?

            Unassigned Unassigned
            zhuweisheng@huawei.com zhuweisheng
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: