-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When there are multiple revisions of an imported module, they are all parsed, and the logic to suppress errors fails to suppress them from the revisions that aren't selected for import. This fix works around this.
- Loading branch information
Showing
7 changed files
with
37 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,4 @@ | ||
test: test1 | ||
|
||
test1: | ||
-$(PYANG) --max-line-len=70 -f tree -o mod1.tree mod1.yang 2>&1 | diff mod1.expect - |
Empty file.
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,4 @@ | ||
|
||
module: mod1 | ||
augment /m2:a: | ||
+--rw b |
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 mod1 { | ||
yang-version 1.1; | ||
namespace "urn:mod1"; | ||
prefix m1; | ||
|
||
import mod2 { | ||
prefix m2; | ||
} | ||
|
||
augment "/m2:a" { | ||
container b {} | ||
} | ||
} |
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 @@ | ||
mod2@2020-10-06.yang |
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 mod2 { | ||
yang-version 1.1; | ||
namespace "urn:mod2"; | ||
prefix m2; | ||
|
||
revision 2020-10-06; | ||
|
||
container a { | ||
description | ||
"This line is rather over-long, and therefore will trigger a warning with | ||
--max-line-length=70."; | ||
} | ||
} |