Skip to content

Commit d10a440

Browse files
committed
Adapt yang modules
1 parent 2dba50d commit d10a440

File tree

7 files changed

+20
-9
lines changed

7 files changed

+20
-9
lines changed

src/confd/yang/confd/infix-if-wifi.yang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ submodule infix-if-wifi {
121121
}
122122

123123
leaf secret {
124-
type ks:symmetric-key-ref;
124+
type ks:central-symmetric-key-ref;
125125
mandatory true;
126126
must "../encryption != 'disabled'" {
127127
error-message

src/confd/yang/confd/infix-keystore.yang

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,21 @@ module infix-keystore {
1111
import infix-crypto-types {
1212
prefix infix-ct;
1313
}
14+
15+
revision 2025-12-10 {
16+
description "Adapt to changes in final version of ietf-keystore";
17+
}
1418
revision 2025-06-17 {
1519
description "Add Wi-Fi secrets support";
1620
}
1721
revision 2025-02-04 {
1822
description "Initial";
1923
}
24+
deviation "/ks:keystore/ks:asymmetric-keys/ks:asymmetric-key/ks:private-key-type" {
25+
deviate replace {
26+
mandatory false;
27+
}
28+
}
2029
deviation "/ks:keystore/ks:asymmetric-keys/ks:asymmetric-key/ks:public-key-format" {
2130
deviate replace {
2231
type identityref {
@@ -46,14 +55,14 @@ module infix-keystore {
4655
wifi-preshared-key-format - WiFi preshared key";
4756
}
4857
}
49-
deviation "/ks:keystore/ks:symmetric-keys/ks:symmetric-key/ks:key-type/ks:cleartext-key/ks:cleartext-key" {
58+
deviation "/ks:keystore/ks:symmetric-keys/ks:symmetric-key/ks:key-type/ks:cleartext-symmetric-key" {
5059
deviate not-supported;
5160
}
5261
augment "/ks:keystore/ks:symmetric-keys/ks:symmetric-key/ks:key-type" {
53-
case cleartext-key {
54-
leaf cleartext-key {
62+
case cleartext-symmetric-key {
63+
leaf cleartext-symmetric-key {
5564
type string;
56-
must "../../ks:key-format != 'infix-ct:wifi-preshared-key-format' or " +
65+
must "../infix-ks:key-format != 'infix-ct:wifi-preshared-key-format' or " +
5766
"(string-length(.) >= 8 and string-length(.) <= 63)" {
5867
error-message "WiFi pre-shared key must be 8-63 characters long";
5968
}

src/confd/yang/confd/infix-meta.yang

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ module infix-meta {
2929

3030
container meta {
3131
description "Meta data";
32-
status obsolete;
3332

3433
leaf version {
35-
status obsolete; // Ensure frontends don't show this, used for migration.
3634
description "Configuration file format version, automatically generated.";
3735
type string;
3836
}

src/confd/yang/confd/infix-routing.yang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ module infix-routing {
167167
base infix-routing-type;
168168
description "Static route";
169169
}
170+
170171
deviation "/rt:routing/rt:control-plane-protocols/rt:control-plane-protocol/rt:type" {
171172
deviate replace {
172173
type identityref {
@@ -858,5 +859,4 @@ module infix-routing {
858859
This is useful for networks where multiple addresses exist on an interface.";
859860
}
860861
}
861-
862862
}

src/confd/yang/confd/infix-services.yang

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ module infix-services {
2525
contact "[email protected]";
2626
description "Infix services, generic.";
2727

28+
revision 2025-12-10 {
29+
description "Adapt to changes in final version of ietf-keystore";
30+
reference "internal";
31+
}
2832
revision 2024-12-03 {
2933
description "Add support for SSH server configuration";
3034
reference "internal";
@@ -143,7 +147,7 @@ module infix-services {
143147
+ "derived-from-or-self(deref(.)/../ks:private-key-format, 'infix-ct:rsa-private-key-format'))" {
144148
error-message "Only RSA hostkeys are supported.";
145149
}
146-
type ks:asymmetric-key-ref;
150+
type ks:central-asymmetric-key-ref;
147151
}
148152

149153
list listen {

0 commit comments

Comments
 (0)