diff options
author | Christian Hopps <chopps@labn.net> | 2024-01-11 14:25:54 +0100 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2024-01-11 14:38:57 +0100 |
commit | 32a4c4019ec6b2f813d4992a878f192c8ea422bb (patch) | |
tree | aaa6aeea8bdfdee7d871c52a41f08e12af625296 /yang/frr-test-module.yang | |
parent | Merge pull request #15098 from donaldsharp/lib_zebra_h_cleanup_2 (diff) | |
download | frr-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.yang | 18 |
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"; + } + } + } + } } } |