summaryrefslogtreecommitdiffstats
path: root/infra/test-utils/test-api/src/main
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2017-02-10 08:55:55 +0100
committerMarek Gradzki <mgradzki@cisco.com>2017-02-10 08:53:27 +0000
commitde55d1e7c1fa5517ee6eabcd3fa23e5b5136d64b (patch)
tree057cd5f38c18da91852c2d79168ae41c0c6bfed6 /infra/test-utils/test-api/src/main
parent8450b69800c827ba221351eb0c374fcbd9146593 (diff)
HONEYCOMB-334 - List entry injection for yang data
Major changes - mechanism to inject list entries by key - provided processor registry to hide explicit implementations Minor changes - general refactoring Test cases - list in root of model - list under container - list under nested container - list in augmentation Change-Id: I9abe1ce5f9176c132ad88627b135516574e40e06 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'infra/test-utils/test-api/src/main')
-rw-r--r--infra/test-utils/test-api/src/main/yang/hc-data.yang21
1 files changed, 21 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
index a817a249f..6cd524565 100644
--- a/infra/test-utils/test-api/src/main/yang/hc-data.yang
+++ b/infra/test-utils/test-api/src/main/yang/hc-data.yang
@@ -12,6 +12,13 @@ module hc-data{
prefix "ext";
}
+ list root-list {
+ key root-name;
+ leaf root-name{
+ type string;
+ }
+ }
+
container simple-container{
list simple-list{
key name;
@@ -23,6 +30,13 @@ module hc-data{
type string;
}
}
+
+ list nested-list {
+ key nested-name;
+ leaf nested-name {
+ type string;
+ }
+ }
}
container nested-container{
@@ -67,5 +81,12 @@ module hc-data{
leaf name-in-augment{
type string;
}
+
+ list list-in-augment{
+ key key-in-augment;
+ leaf key-in-augment{
+ type string;
+ }
+ }
}
} \ No newline at end of file