summaryrefslogtreecommitdiffstats
path: root/infra/test-utils/test-api/src
diff options
context:
space:
mode:
Diffstat (limited to 'infra/test-utils/test-api/src')
-rw-r--r--infra/test-utils/test-api/src/main/yang/hc-data.yang71
1 files changed, 71 insertions, 0 deletions
diff --git a/infra/test-utils/test-api/src/main/yang/hc-data.yang b/infra/test-utils/test-api/src/main/yang/hc-data.yang
new file mode 100644
index 000000000..a817a249f
--- /dev/null
+++ b/infra/test-utils/test-api/src/main/yang/hc-data.yang
@@ -0,0 +1,71 @@
+module hc-data{
+
+ yang-version 1;
+ namespace "urn:opendaylight:params:xml:ns:yang:hc:data";
+ prefix "hc-d-i";
+
+ revision "2015-01-05" {
+ description "Testing HC model for test data injection";
+ }
+
+ import yang-ext {
+ prefix "ext";
+ }
+
+ container simple-container{
+ list simple-list{
+ key name;
+ leaf name{
+ type string;
+ }
+ container cont-under-list{
+ leaf nested-name{
+ type string;
+ }
+ }
+ }
+
+ container nested-container{
+ leaf name{
+ type string;
+ }
+ }
+
+ container nested-container-with-list{
+ list nested-list{
+ key name;
+ leaf name{
+ type string;
+ }
+ }
+ }
+
+ choice simple-choice{
+ case first-case{
+ leaf name{
+ type string;
+ }
+ }
+
+ case second-case{
+ container case-container{
+ leaf name{
+ type string;
+ }
+ }
+ }
+ }
+
+ container augmented-container{
+
+ }
+ }
+
+ augment /hc-d-i:simple-container/hc-d-i:augmented-container{
+ ext:augment-identifier "aug-container-augmentation";
+
+ leaf name-in-augment{
+ type string;
+ }
+ }
+} \ No newline at end of file