forked from mbj4668/pyang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes mbj4668#518 - broken xpath check
- Loading branch information
Martin Björklund
committed
Nov 20, 2019
1 parent
4435dfe
commit bf0bf09
Showing
4 changed files
with
28 additions
and
3 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,2 @@ | ||
test: | ||
pyang s.yang --print-error-code 2>&1 | diff s.expect - |
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 @@ | ||
s.yang:12: error: XPATH_PATH_TOO_MANY_UP |
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,19 @@ | ||
submodule s { | ||
belongs-to a { | ||
prefix a; | ||
} | ||
|
||
container test; | ||
|
||
augment "/test" { | ||
container x { | ||
container test-1 { | ||
leaf tcp-profile { | ||
when "/../../test/protocol = 'test'"; | ||
type string; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|