Skip to content

Commit 5a76436

Browse files
mihirramrajpal2
authored andcommitted
Updated routing passwords, keychains, password complexity, and other miscellaneous changes
1 parent 9ce0b2f commit 5a76436

13 files changed

+469
-41
lines changed

release/models/bgp/openconfig-bgp-common.yang

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ submodule openconfig-bgp-common {
99
import openconfig-routing-policy { prefix oc-rpol; }
1010
import openconfig-types { prefix oc-types; }
1111
import openconfig-inet-types { prefix oc-inet; }
12+
import openconfig-keychain { prefix "oc-keychain"; }
13+
1214

1315
// meta
1416
organization
@@ -24,7 +26,13 @@ submodule openconfig-bgp-common {
2426
may be application to a subset of global, peer-group or neighbor
2527
contexts.";
2628

27-
oc-ext:openconfig-version "9.8.0";
29+
oc-ext:openconfig-version "9.9.0";
30+
31+
revision "2025-04-13" {
32+
description
33+
"Add additional security features.";
34+
reference "9.9.0";
35+
}
2836

2937
revision "2024-09-06" {
3038
description
@@ -298,6 +306,15 @@ submodule openconfig-bgp-common {
298306
neighboring devices.";
299307
}
300308

309+
leaf key-chain {
310+
type leafref {
311+
path "/oc-keychain:keychains/oc-keychain:keychain/" +
312+
"oc-keychain:name";
313+
}
314+
description
315+
"Configure Key Chain name";
316+
}
317+
301318
leaf remove-private-as {
302319
// could also make this a container with a flag to enable
303320
// remove-private and separate option. here, option implies

release/models/firewall/openconfig-fw-high-availability.yang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ module openconfig-fw-high-availability {
272272
}
273273

274274
leaf ha-key-hashed {
275-
type oc-aaa-types:crypt-password-type;
275+
type oc-types:crypt-password-type;
276276
description
277277
"HA key,used to encrypt & authenticate HA messages between
278278
the peers, supplied as a hashed value using the notation

release/models/isis/openconfig-isis.yang

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ module openconfig-isis {
5454
+-> { levels config }
5555
+-> { level adjacencies }";
5656

57-
oc-ext:openconfig-version "1.7.0";
57+
oc-ext:openconfig-version "1.8.0";
58+
59+
revision "2025-04-13" {
60+
description
61+
"Add additional security features.";
62+
reference "1.8.0";
63+
}
5864

5965
revision "2024-02-28" {
6066
description
@@ -441,6 +447,15 @@ module openconfig-isis {
441447
"The authentication key used in the applicable IS-IS PDUs. The key in the
442448
packet may be encrypted according to the configured authentication type.";
443449
}
450+
451+
leaf key-chain {
452+
type leafref {
453+
path "/oc-keychain:keychains/oc-keychain:keychain/" +
454+
"oc-keychain:name";
455+
}
456+
description
457+
"Configure Key Chain name";
458+
}
444459
}
445460
grouping isis-metric-style-config {
446461
description

release/models/keychain/openconfig-keychain.yang

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ module openconfig-keychain {
3333
which may be then referenced by other models such as routing protocol
3434
management.";
3535

36-
oc-ext:openconfig-version "0.5.0";
36+
oc-ext:openconfig-version "0.6.0";
37+
38+
revision "2025-04-13" {
39+
description
40+
"Add additional security features.";
41+
reference "0.6.0";
42+
}
3743

3844
revision "2024-05-30" {
3945
description
@@ -213,10 +219,15 @@ revision "2024-05-30" {
213219
}
214220

215221
leaf secret-key {
216-
type string;
222+
type union {
223+
type string;
224+
type oc-types:unsecure-routing-password;
225+
}
217226
description
218-
"Authentication key supplied as an encrypted value. The system should store and
219-
return the key in encrypted form.";
227+
"Authentication key supplied as either plaintext or as an encrypted
228+
value. The system should store and return the key in encrypted form.
229+
For key pairs, the key should be encoded as PEM or hex-encoded DER.
230+
See the routing-password section for acceptable encryption techniques.";
220231
}
221232

222233
leaf crypto-algorithm {

release/models/mpls/openconfig-mpls-ldp.yang

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ module openconfig-mpls-ldp {
1313
import openconfig-interfaces { prefix oc-if; }
1414
import openconfig-yang-types { prefix oc-yang; }
1515
import openconfig-types { prefix oc-types; }
16+
import openconfig-keychain { prefix "oc-keychain"; }
17+
1618

1719
// meta
1820
organization "OpenConfig working group";
@@ -43,7 +45,13 @@ module openconfig-mpls-ldp {
4345
Section 4.c of the IETF Trust's Legal Provisions Relating
4446
to IETF Documents (http://trustee.ietf.org/license-info).";
4547

46-
oc-ext:openconfig-version "3.2.1";
48+
oc-ext:openconfig-version "3.3.0";
49+
50+
revision "2025-04-13" {
51+
description
52+
"Add additional security features.";
53+
reference "3.3.0";
54+
}
4755

4856
revision "2023-02-06" {
4957
description
@@ -959,6 +967,15 @@ module openconfig-mpls-ldp {
959967
"RFC1321 The MD5 Message-Digest Algorithm
960968
RFC5036 LDP Specification";
961969
}
970+
971+
leaf key-chain {
972+
type leafref {
973+
path "/oc-keychain:keychains/oc-keychain:keychain/" +
974+
"oc-keychain:name";
975+
}
976+
description
977+
"Configure Key Chain name";
978+
}
962979
}
963980

964981
grouping admin-config {

release/models/mpls/openconfig-mpls-rsvp.yang

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module openconfig-mpls-rsvp {
1414
import openconfig-types { prefix oc-types; }
1515
import openconfig-extensions { prefix oc-ext; }
1616
import openconfig-interfaces { prefix oc-if; }
17+
import openconfig-keychain { prefix "oc-keychain"; }
1718

1819

1920
// meta
@@ -28,7 +29,13 @@ module openconfig-mpls-rsvp {
2829
parameters and LSP-specific configuration for constrained-path
2930
LSPs";
3031

31-
oc-ext:openconfig-version "4.0.1";
32+
oc-ext:openconfig-version "4.1.0";
33+
34+
revision "2025-04-13" {
35+
description
36+
"Add additional security features.";
37+
reference "4.1.0";
38+
}
3239

3340
revision "2023-02-06" {
3441
description
@@ -377,6 +384,15 @@ module openconfig-mpls-rsvp {
377384
reference
378385
"RFC 2747: RSVP Cryptographic Authentication";
379386
}
387+
388+
leaf key-chain {
389+
type leafref {
390+
path "/oc-keychain:keychains/oc-keychain:keychain/" +
391+
"oc-keychain:name";
392+
}
393+
description
394+
"Configure Key Chain name";
395+
}
380396
}
381397

382398
grouping mpls-rsvp-authentication {

release/models/system/openconfig-aaa-radius.yang

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ submodule openconfig-aaa-radius {
1212
import openconfig-aaa-types { prefix oc-aaa-types; }
1313
import openconfig-types { prefix oc-types; }
1414
import openconfig-yang-types { prefix oc-yang; }
15+
import openconfig-keychain { prefix "oc-keychain"; }
1516

1617

1718
// meta
@@ -26,7 +27,13 @@ submodule openconfig-aaa-radius {
2627
related to the RADIUS protocol for authentication,
2728
authorization, and accounting.";
2829

29-
oc-ext:openconfig-version "1.0.0";
30+
oc-ext:openconfig-version "1.1.0";
31+
32+
revision "2025-04-13" {
33+
description
34+
"Add additional security features.";
35+
reference "1.1.0";
36+
}
3037

3138
revision "2022-07-29" {
3239
description
@@ -110,8 +117,17 @@ submodule openconfig-aaa-radius {
110117
server and the device.";
111118
}
112119

120+
leaf key-chain {
121+
type leafref {
122+
path "/oc-keychain:keychains/oc-keychain:keychain/" +
123+
"oc-keychain:name";
124+
}
125+
description
126+
"Configure Key Chain name";
127+
}
128+
113129
leaf secret-key-hashed {
114-
type oc-aaa-types:crypt-password-type;
130+
type oc-types:crypt-password-type;
115131
description
116132
"The hashed shared key used between the authentication
117133
server and the device.";

release/models/system/openconfig-aaa-tacacs.yang

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ submodule openconfig-aaa-tacacs {
1111
import openconfig-extensions { prefix oc-ext; }
1212
import openconfig-aaa-types { prefix oc-aaa-types; }
1313
import openconfig-types { prefix oc-types; }
14+
import openconfig-keychain { prefix "oc-keychain"; }
1415

1516

1617
// meta
@@ -25,7 +26,13 @@ submodule openconfig-aaa-tacacs {
2526
related to the TACACS+ protocol for authentication,
2627
authorization, and accounting.";
2728

28-
oc-ext:openconfig-version "1.0.0";
29+
oc-ext:openconfig-version "1.1.0";
30+
31+
revision "2025-04-13" {
32+
description
33+
"Add additional security features.";
34+
reference "1.1.0";
35+
}
2936

3037
revision "2022-07-29" {
3138
description
@@ -103,8 +110,17 @@ submodule openconfig-aaa-tacacs {
103110
server and the device.";
104111
}
105112

113+
leaf key-chain {
114+
type leafref {
115+
path "/oc-keychain:keychains/oc-keychain:keychain/" +
116+
"oc-keychain:name";
117+
}
118+
description
119+
"Configure Key Chain name";
120+
}
121+
106122
leaf secret-key-hashed {
107-
type oc-aaa-types:crypt-password-type;
123+
type oc-types:crypt-password-type;
108124
description
109125
"The hashed shared key used between the authentication
110126
server and the device.";

release/models/system/openconfig-aaa-types.yang

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -146,27 +146,4 @@ module openconfig-aaa-types {
146146

147147
// typedef statements
148148

149-
typedef crypt-password-type {
150-
type string;
151-
description
152-
"A password that is hashed based on the hash algorithm
153-
indicated by the prefix in the string. The string
154-
takes the following form, based on the Unix crypt function:
155-
156-
$<id>[$<param>=<value>(,<param>=<value>)*][$<salt>[$<hash>]]
157-
158-
Common hash functions include:
159-
160-
id | hash function
161-
---+---------------
162-
1 | MD5
163-
2a| Blowfish
164-
2y| Blowfish (correct handling of 8-bit chars)
165-
5 | SHA-256
166-
6 | SHA-512
167-
168-
These may not all be supported by a target device.";
169-
}
170-
171-
172149
}

release/models/system/openconfig-system-grpc.yang

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,16 @@ module openconfig-system-grpc {
2323
to be included in the list.";
2424

2525

26-
oc-ext:openconfig-version "1.1.0";
26+
oc-ext:openconfig-version "1.2.0";
2727
oc-ext:catalog-organization "openconfig";
2828
oc-ext:origin "openconfig";
2929

30+
revision "2025-04-13" {
31+
description
32+
"Add additional security features.";
33+
reference "1.2.0";
34+
}
35+
3036
revision "2024-05-29" {
3137
description
3238
"Add support for gRPC connections.";
@@ -63,6 +69,14 @@ module openconfig-system-grpc {
6369
"gNMI: gRPC Network Management Interface";
6470
}
6571

72+
identity GNOI {
73+
base GRPC_SERVICE;
74+
description
75+
"gNOI: gRPC Network Operations Interface (Must at least support
76+
Certificate Management and File Transfer, which is used to
77+
upload the database of weak passwords)";
78+
}
79+
6680
grouping grpc-service-structural {
6781
description
6882
"Structural grouping for gRPC services that can be enabled on

0 commit comments

Comments
 (0)