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

Make bits serialization sorted (alphabetically)

    XMLWordPrintable

Details

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

    • 5560

    Description

      Yang specification describes canonical form for bits to be ordered by position: http://tools.ietf.org/html/rfc6020#section-9.7.3

      But yang-data-api specifies:
      public interface BitsCodec<T> extends Codec<T, Set<String>>{
      and Set loses the ordering.
      This makes ODL report bits in pseudorandom order, which is not nice as users need more logic to compare outputs.

      A simple improvement would be to order serialized values alphabetically. It would take some CPU cycles, but most Yang models only have a few bits to sort.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            vrpolak Vratko Polak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: