summaryrefslogtreecommitdiffstats
path: root/infra/it/test-model/src/main/yang
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-01-17 13:30:50 +0100
committerMarek Gradzki <mgradzki@cisco.com>2017-01-23 08:44:59 +0000
commit60e463b17b05458c1f9a7fd72f9e99d71124eedf (patch)
treeb4fc9fb42aa2414a8a02ea6cebd17332729acdb3 /infra/it/test-model/src/main/yang
parenta3c54fffa45fadb59daa32e7dcecb1f66c847c43 (diff)
HONEYCOMB-302: add support for nested augmentations
Change-Id: I60f1b3f79ddb578d6fca157fe5736de40b30623e Signed-off-by: Marek Gradzki <mgradzki@cisco.com> (cherry picked from commit 78886acd688284585c2e219e18d7289f49cc8a45)
Diffstat (limited to 'infra/it/test-model/src/main/yang')
-rw-r--r--infra/it/test-model/src/main/yang/hc-aug-test.yang63
1 files changed, 63 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
new file mode 100644
index 000000000..8a83ab56f
--- /dev/null
+++ b/infra/it/test-model/src/main/yang/hc-aug-test.yang
@@ -0,0 +1,63 @@
+module hc-aug-test {
+ yang-version 1;
+ namespace "urn:opendaylight:params:xml:ns:yang:hc:aug:test";
+ prefix "hcat";
+
+ revision "2017-01--9" {
+ description "Test model for aumentations of augmentations (https://jira.fd.io/browse/HONEYCOMB-302)";
+ }
+
+ import yang-ext {
+ prefix "ext";
+ }
+
+ container aug-target {
+ leaf some-leaf {
+ type string;
+ }
+ }
+
+ augment "/aug-target" {
+ ext:augment-identifier "from-augment-augment";
+ container from-augment {
+ leaf some-leaf {
+ type string;
+ }
+ }
+ }
+
+ augment "/aug-target" {
+ ext:augment-identifier "simple-augment";
+ leaf simple-augment-leaf {
+ type string;
+ }
+ }
+
+ augment "/aug-target/from-augment" {
+ ext:augment-identifier "simple-nested-augment";
+ leaf simple-nested-augment-leaf {
+ type string;
+ }
+ }
+
+ augment "/aug-target/from-augment" {
+ ext:augment-identifier "from-augment2-augment";
+ container from-augment-2 {
+ leaf new-leaf {
+ type string;
+ }
+ }
+ }
+
+ augment "/aug-target/from-augment" {
+ ext:augment-identifier "from-augment-list-augment";
+ list from-augment-entry {
+ key some-leaf;
+
+ leaf some-leaf {
+ type string;
+ }
+ }
+ }
+
+}