diff options
author | Andrei Pavel <andrei@isc.org> | 2022-11-07 16:43:07 +0100 |
---|---|---|
committer | Razvan Becheriu <razvan@isc.org> | 2022-11-25 17:15:33 +0100 |
commit | 235f913e6472448bb8a3cd375549f19b0119014a (patch) | |
tree | 7621b3150b9f9f119a3d82b5d0e2897fec85114f /src/share | |
parent | [#2601] rename TranslatorBasic to Translator (diff) | |
download | kea-235f913e6472448bb8a3cd375549f19b0119014a.tar.xz kea-235f913e6472448bb8a3cd375549f19b0119014a.zip |
[#2601] make Translator aware of all leaf base types
Also add leafrefs and the empty leaf to the keatest-module.
And add tests for those, and also unions, dec64, int64, uint64.
Diffstat (limited to 'src/share')
-rw-r--r-- | src/share/yang/modules/Makefile.am | 2 | ||||
-rw-r--r-- | src/share/yang/modules/hashes/keatest-module@2018-11-20.hash | 1 | ||||
-rw-r--r-- | src/share/yang/modules/hashes/keatest-module@2022-11-30.hash | 1 | ||||
-rw-r--r-- | src/share/yang/modules/keatest-module@2022-11-30.yang (renamed from src/share/yang/modules/keatest-module@2018-11-20.yang) | 37 |
4 files changed, 32 insertions, 9 deletions
diff --git a/src/share/yang/modules/Makefile.am b/src/share/yang/modules/Makefile.am index 2d97db09a0..1dfcf28269 100644 --- a/src/share/yang/modules/Makefile.am +++ b/src/share/yang/modules/Makefile.am @@ -17,7 +17,7 @@ yangmodules_list += kea-dhcp-types@2022-11-30.yang yangmodules_list += kea-dhcp4-server@2022-11-30.yang yangmodules_list += kea-dhcp6-server@2022-11-30.yang yangmodules_list += kea-types@2019-08-12.yang -yangmodules_list += keatest-module@2018-11-20.yang +yangmodules_list += keatest-module@2022-11-30.yang EXTRA_DIST = hashes ${yangmodules_list} diff --git a/src/share/yang/modules/hashes/keatest-module@2018-11-20.hash b/src/share/yang/modules/hashes/keatest-module@2018-11-20.hash deleted file mode 100644 index 480b411a77..0000000000 --- a/src/share/yang/modules/hashes/keatest-module@2018-11-20.hash +++ /dev/null @@ -1 +0,0 @@ -2369eabd01e2c10f0418d3600d9ffa286f73f642a9b35f19f83fe4c249f436a9 diff --git a/src/share/yang/modules/hashes/keatest-module@2022-11-30.hash b/src/share/yang/modules/hashes/keatest-module@2022-11-30.hash new file mode 100644 index 0000000000..fcc45c7f05 --- /dev/null +++ b/src/share/yang/modules/hashes/keatest-module@2022-11-30.hash @@ -0,0 +1 @@ +154760167c8e5986b3e3dfa52dbde018ffd23de2399da76ce30583feb10071f9 diff --git a/src/share/yang/modules/keatest-module@2018-11-20.yang b/src/share/yang/modules/keatest-module@2022-11-30.yang index 8993218029..8042b26c4c 100644 --- a/src/share/yang/modules/keatest-module@2018-11-20.yang +++ b/src/share/yang/modules/keatest-module@2022-11-30.yang @@ -10,6 +10,11 @@ module keatest-module { contact "kea-dev@lists.isc.org"; + revision 2022-11-30 { + description + "Added leafrefs and empty leaf."; + } + revision 2018-11-20 { description "Initial revision"; reference ""; @@ -104,6 +109,29 @@ module keatest-module { leaf instance_id { type instance-identifier; } + leaf union { + type union { + type uint8; + type enumeration { + enum "infinity"; + } + } + } + leaf leafref-i8 { + type leafref { + path "/main/i8"; + } + } + leaf leafref-raw { + type leafref { + path "/main/raw"; + } + } + leaf leafref-string { + type leafref { + path "/main/string"; + } + } anyxml xml-data; anydata any-data; } @@ -131,13 +159,8 @@ module keatest-module { leaf instance_id { type instance-identifier; } - leaf union { - type union { - type uint8; - type enumeration { - enum "infinity"; - } - } + leaf empty { + type empty; } } |