Skip to content

Commit d98288e

Browse files
committed
YANG: all values in an enumeration needs to be sorted in ascendning order
This due to a bug in libyang: CESNET/libyang#2462 With out this fix, confd crashes when setting for example the DHCPv6 option ntp-server
1 parent c56a9f2 commit d98288e

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

src/confd/yang/confd/infix-dhcp-common.yang

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ module infix-dhcp-common {
77
contact "[email protected]";
88
description "Shared types between DHCP server and client.";
99

10+
revision 2025-12-21 {
11+
description "Reorder enum values to ascending order, see https://github.com/CESNET/libyang/issues/2462"
12+
reference "internal";
13+
}
1014
revision 2025-11-09 {
1115
description "Add DHCPv6 options typedef and DHCPv4 vendor-class option.";
1216
reference "internal";
@@ -171,21 +175,21 @@ module infix-dhcp-common {
171175
value 25;
172176
description "Identity Association for Prefix Delegation, RFC 8415.";
173177
}
174-
enum ntp-server {
175-
value 56;
176-
description "NTP time servers, RFC 5908.";
177-
}
178-
enum client-fqdn {
179-
value 39;
180-
description "Client Fully Qualified Domain Name, RFC 4704.";
178+
enum sntp-server {
179+
value 31;
180+
description "Simple Network Time Protocol servers, RFC 4075.";
181181
}
182182
enum information-refresh-time {
183183
value 32;
184184
description "Information refresh time for stateless DHCPv6, RFC 8415.";
185185
}
186-
enum sntp-server {
187-
value 31;
188-
description "Simple Network Time Protocol servers, RFC 4075.";
186+
enum client-fqdn {
187+
value 39;
188+
description "Client Fully Qualified Domain Name, RFC 4704.";
189+
}
190+
enum ntp-server {
191+
value 56;
192+
description "NTP time servers, RFC 5908.";
189193
}
190194
}
191195
}

0 commit comments

Comments
 (0)