summaryrefslogtreecommitdiffstats
path: root/infra/it/test-model/src/main/yang
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-02-10 12:25:37 +0100
committerMarek Gradzki <mgradzki@cisco.com>2017-02-10 13:04:43 +0100
commit66fa7ccd196c000c15203f9968beed698ba06b76 (patch)
tree16f742b433906e327bb7d3da347e229406367c03 /infra/it/test-model/src/main/yang
parentde55d1e7c1fa5517ee6eabcd3fa23e5b5136d64b (diff)
Fix support for nested augmentations when augmenting lists
Change-Id: I96e7db8f295c9c3d5b14395c7785574d12d76ea9 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'infra/it/test-model/src/main/yang')
-rw-r--r--infra/it/test-model/src/main/yang/hc-aug-test.yang18
1 files changed, 18 insertions, 0 deletions
diff --git a/infra/it/test-model/src/main/yang/hc-aug-test.yang b/infra/it/test-model/src/main/yang/hc-aug-test.yang
index 8a83ab56f..95179d422 100644
--- a/infra/it/test-model/src/main/yang/hc-aug-test.yang
+++ b/infra/it/test-model/src/main/yang/hc-aug-test.yang
@@ -27,6 +27,17 @@ module hc-aug-test {
}
augment "/aug-target" {
+ ext:augment-identifier "list-augment";
+ list list-from-augment {
+ key some-leaf;
+
+ leaf some-leaf {
+ type string;
+ }
+ }
+ }
+
+ augment "/aug-target" {
ext:augment-identifier "simple-augment";
leaf simple-augment-leaf {
type string;
@@ -60,4 +71,11 @@ module hc-aug-test {
}
}
+ augment "/aug-target/list-from-augment" {
+ ext:augment-identifier "list-from-augment-augment";
+ leaf new-leaf {
+ type string;
+ }
+ }
+
}