[YANGTOOLS-595] Make bits serialization sorted (alphabetically) Created: 18/Mar/16 Updated: 10/Apr/22 Resolved: 22/Mar/16 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Vratko Polak | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 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: 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. |
| Comments |
| Comment by Vratko Polak [ 18/Mar/16 ] |
|
An early idea of a fix, not verified yet: |
| Comment by Tony Tkacik [ 22/Mar/16 ] |
|
Cannonical ordering ( |
| Comment by Vratko Polak [ 22/Mar/16 ] |
|
(In reply to Tony Tkacik from comment #2) I agree, but I suspect |