summaryrefslogtreecommitdiffstats
path: root/cps-service/src/test/resources/yang-with-choice-node.yang
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2022-12-12 16:09:21 +0000
committerGerrit Code Review <gerrit@onap.org>2022-12-12 16:09:21 +0000
commit55469288c62a762b16b53e665d1fd496d6126dec (patch)
tree1a4d96cdf0a35ec84d0158c3c5b4295fc1728f52 /cps-service/src/test/resources/yang-with-choice-node.yang
parentc88883a6fcd629669efe490dc43cf5764d5ab00c (diff)
parente7f24d3f2f239e6bdc14a78eb01d07525650a960 (diff)
Merge "Fix DataNodeBuilder for ChoiceNodes"
Diffstat (limited to 'cps-service/src/test/resources/yang-with-choice-node.yang')
-rw-r--r--cps-service/src/test/resources/yang-with-choice-node.yang27
1 files changed, 27 insertions, 0 deletions
diff --git a/cps-service/src/test/resources/yang-with-choice-node.yang b/cps-service/src/test/resources/yang-with-choice-node.yang
new file mode 100644
index 0000000000..55c0bfbe62
--- /dev/null
+++ b/cps-service/src/test/resources/yang-with-choice-node.yang
@@ -0,0 +1,27 @@
+module yang-with-choice-node {
+ yang-version 1.1;
+ namespace "org:onap:cps:test:yang-with-choice-node";
+ prefix "yang-with-choice-node";
+
+ container container-with-choice-leaves {
+ leaf leaf-1 {
+ type string;
+ }
+
+ choice choicenode {
+ case case-1 {
+ leaf choice-case1-leaf-a {
+ type string;
+ }
+ leaf choice-case1-leaf-b {
+ type string;
+ }
+ }
+ case case-2 {
+ leaf choice-case2-leaf-a {
+ type string;
+ }
+ }
+ }
+ }
+}