Skip to content

Commit 120a55f

Browse files
authored
Merge pull request #1333 from kernelkit/reorder-enums
YANG: all values in an enumeration needs to be sorted in ascendning order
2 parents 463b516 + 186ea1c commit 120a55f

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

src/confd/yang/confd.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ MODULES=(
3030
3131
3232
33-
"infix-dhcp-common@2025-11-09.yang"
33+
"infix-dhcp-common@2025-12-21.yang"
3434
3535
3636

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)