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

Range attribute changes method return type

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: Linux
      Platform: PC

    Description

      Given:

      leaf as-number {
      type inet:as-number;
      }

      The generated code looks ok 'AsNumber getAsNumber()'

      If I specify range of the AsNumber:

      leaf as-number {
      type inet:as-number

      { range 0..65535; }

      }

      The generated method changes its return type to 'Long getAsNumber()'.

      Although range is not implemented, it shouldn't change the return type.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            dkutenicsova Dana Kutenicsova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: