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

Not able to define a list with identifier name "Class" in yang

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: Windows
      Platform: PC

    • 680

    Description

      I am trying to define following construct in a yang file:

      container configuration {
      list class {
      key "name";
      leaf name

      { type string; }
      leaf value { type string; }

      }
      }

      Now, when I try to generate source using Maven, it gives below compilation error:

      [ERROR] \target\generated-sources\sal\org\opendaylight\yang\gen\v1\yang03\rev150802\configuration\ClassBuilder.java:[14
      ,21] error: type Class does not take parameters

      It appears that this construct is getting mapped to java.lang.Class

      Reference thread:

      https://lists.opendaylight.org/pipermail/controller-dev/2014-April/003604.html

      Attachments

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

        Activity

          People

            jgloncak Jozef Gloncak
            kagupta@ciena.com Kanika Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: