From: Andrei Pavel Date: Wed, 10 Jan 2024 09:17:32 +0000 (+0200) Subject: [#3198] add data as key for option-data in YANG modules X-Git-Tag: Kea-2.5.5~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5202cd149bf549ccab029be90fb3fb8d9075b446;p=thirdparty%2Fkea.git [#3198] add data as key for option-data in YANG modules Setting mandatory for keys is redundant as mentioned in RFC 7950 section 7.8.2: Any "mandatory" statements in the key leafs are ignored. So they were removed. This now makes it consistent with how data is declared in option-data as well. --- diff --git a/src/share/yang/modules/kea-dhcp4-server@2023-06-28.yang b/src/share/yang/modules/kea-dhcp4-server@2023-06-28.yang index c2561057e8..e82b3d1ad3 100644 --- a/src/share/yang/modules/kea-dhcp4-server@2023-06-28.yang +++ b/src/share/yang/modules/kea-dhcp4-server@2023-06-28.yang @@ -331,16 +331,14 @@ module kea-dhcp4-server { grouping option-data-list { description "Option data list grouping."; list option-data { - key "code space"; + key "code space data"; description "Option data entry."; leaf code { type uint8; - mandatory true; description "Option code."; } leaf space { type string; - mandatory true; description "Option space."; } uses dhcp:option-data-name; diff --git a/src/share/yang/modules/kea-dhcp6-server@2023-06-28.yang b/src/share/yang/modules/kea-dhcp6-server@2023-06-28.yang index 8f716201cb..d843d8277f 100644 --- a/src/share/yang/modules/kea-dhcp6-server@2023-06-28.yang +++ b/src/share/yang/modules/kea-dhcp6-server@2023-06-28.yang @@ -365,16 +365,14 @@ module kea-dhcp6-server { grouping option-data-list { description "Option data list grouping."; list option-data { - key "code space"; + key "code space data"; description "Option data entry."; leaf code { type uint16; - mandatory true; description "Option code."; } leaf space { type string; - mandatory true; description "Option space."; } uses dhcp:option-data-name;