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

Parameters sequence of generated constructor for bits type leaf should be same as the sequence of its bit fields defined in its yang file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Medium Medium
    • None
    • None
    • Binding V2 codegen
    • None

      Now the parameters sequence of generated constructor for bits type leaf is the alphabetic sequence of names of its bit fields defined in its yang file. Such alphabetic sequence comes from the sort operation on all properties in ClassTemplate.xtend in v1 binding generator.

      This is not natual and if application developper doesn't carefully take a look at the generated constructor, they will construct such leaf node in the sequence of bit fields defined in the yang file. And such misuse won't be reported by the Java compiler.

      Can we eliminate the sort operation on all properties in ClassTemplate.xtend and let the parameters of all generated constructors appear in their natural order?

            Unassigned Unassigned
            ykq Kangqian Yin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: