Skip to content

Commit

Permalink
Fix Netconf key elements serialization order (CiscoDevNet#363)
Browse files Browse the repository at this point in the history
* Update for ydk core version 0.5.4
  • Loading branch information
shgandhi committed Jun 1, 2017
1 parent 8e68d60 commit b4b6fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydkgen/api_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ def get_properties(owned_elements):

# first get the key properties
key_props = [p for p in all_props if p.is_key()]
props.extend(sorted(key_props, key=lambda p:p. name))
props.extend(key_props)

non_key_props = [p for p in all_props if not p.is_key()]
props.extend(sorted(non_key_props, key=lambda p: p.name))
Expand Down

0 comments on commit b4b6fec

Please sign in to comment.