summaryrefslogtreecommitdiffstats
path: root/yang/frr-test-module.yang
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2024-01-11 14:25:54 +0100
committerChristian Hopps <chopps@labn.net>2024-01-11 14:38:57 +0100
commit32a4c4019ec6b2f813d4992a878f192c8ea422bb (patch)
treeaaa6aeea8bdfdee7d871c52a41f08e12af625296 /yang/frr-test-module.yang
parentMerge pull request #15098 from donaldsharp/lib_zebra_h_cleanup_2 (diff)
downloadfrr-32a4c4019ec6b2f813d4992a878f192c8ea422bb.tar.xz
frr-32a4c4019ec6b2f813d4992a878f192c8ea422bb.zip
lib: implement missing YANG choice/case statements.
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to '')
-rw-r--r--yang/frr-test-module.yang18
1 files changed, 18 insertions, 0 deletions
diff --git a/yang/frr-test-module.yang b/yang/frr-test-module.yang
index d6e718824..6cc60e866 100644
--- a/yang/frr-test-module.yang
+++ b/yang/frr-test-module.yang
@@ -82,5 +82,23 @@ module frr-test-module {
}
}
}
+ choice achoice {
+ description "a choice statement";
+ case case1 {
+ leaf c1value {
+ type uint8;
+ description "A uint8 value for case 1";
+ }
+ }
+ case case2 {
+ container c2cont {
+ description "case 2 container";
+ leaf c2value {
+ type uint32;
+ description "A uint32 value for case 2";
+ }
+ }
+ }
+ }
}
}