summaryrefslogtreecommitdiffstats
path: root/infra/it/test-model/src/main/yang
diff options
context:
space:
mode:
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;
+ }
+ }
+ }
+
+}