-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parsers BUGFIX updating hash of keyless lists
do not update keyless list's hash (and do not add it into the parent's hash table) on its child node change if the keyless lis t 's hash is 0, i.e. it is being parsed and hash will be set later when all the children are parsed. Fixes #867
- Loading branch information
Showing
5 changed files
with
94 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"keyless:c": { | ||
"x": [ | ||
"1", | ||
"2", | ||
"3", | ||
"4" | ||
], | ||
"l": [ | ||
{ | ||
"a": "a" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<c xmlns="urn:test:keyless"> | ||
<x>1</x> | ||
<x>2</x> | ||
<x>3</x> | ||
<x>4</x> | ||
<l> | ||
<a>a</a> | ||
</l> | ||
</c> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module keyless { | ||
namespace urn:test:keyless; | ||
prefix m; | ||
yang-version 1.1; | ||
|
||
container c { | ||
leaf-list x { type string;} | ||
list l { | ||
config false; | ||
leaf a { type string;} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters