-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #650 - bad expansion of multiple related augments
- Loading branch information
Showing
3 changed files
with
96 additions
and
13 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) -Werror a.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,64 @@ | ||
module a { | ||
yang-version 1.1; | ||
namespace "urn:a"; | ||
|
||
prefix ex; | ||
|
||
container interfaces { | ||
|
||
list interface { | ||
key "name"; | ||
|
||
leaf name { | ||
type string; | ||
} | ||
|
||
leaf type { | ||
type string; | ||
mandatory true; | ||
} | ||
|
||
} | ||
|
||
} | ||
|
||
|
||
augment '/ex:interfaces/ex:interface/ex:frame-processing/ex:inline-frame-processingx/ex:inline-frame-processing/ex:ingress-rule/ex:rule/ex:flexible-match' { | ||
|
||
when | ||
"../../../../ex:type = 'value'"; | ||
|
||
} | ||
|
||
augment '/ex:interfaces/ex:interface' { | ||
|
||
choice frame-processing { | ||
|
||
case inline-frame-processingx { | ||
|
||
container inline-frame-processing { | ||
|
||
container ingress-rule { | ||
|
||
list rule { | ||
key "name"; | ||
|
||
leaf name { | ||
type string; | ||
} | ||
|
||
container flexible-match { | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
} |