Skip to content

Commit 4dcae55

Browse files
committed
Changes
2 parents 0de9d67 + e684942 commit 4dcae55

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

src/sonic-yang-models/yang-models/sonic-stp.yang

+20-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
module sonic-stp {
2+
yang-version 1.1;
23
namespace "http://github.com/sonic-net/sonic-stp";
34
prefix stp;
4-
yang-version 1.1;
55

66
import sonic-extension {
77
prefix sonic-ext;
88
}
99

10-
description "SONiC STP YANG model for PVST and MST configurations";
10+
description
11+
"SONiC STP YANG model for PVST and MST configurations";
12+
13+
revision 2024-12-30 {
14+
description
15+
"Version01 for combined PVST configurations.";
16+
}
1117

12-
revision 2024-11-24 {
13-
description "Version01 for combined PVST configurations.";
18+
extension dependent-on {
19+
argument "dependency";
20+
description
21+
"Indicates module dependencies";
1422
}
1523

1624
grouping vlanModeAttr {
@@ -195,7 +203,10 @@ module sonic-stp {
195203
container STP_PORT {
196204
list STP_PORT_LIST {
197205
key "ifname";
198-
sonic-ext:dependent-on "STP_LIST";
206+
//sonic-ext:dependent-on "STP_LIST";
207+
must "/sonic-spanning-tree/STP/STP_LIST" {
208+
error-message "STP global configuration must exist";
209+
}
199210
leaf ifname {
200211
type string;
201212
description
@@ -269,7 +280,10 @@ module sonic-stp {
269280
list STP_MST_LIST {
270281
max-elements 1;
271282
key "keyleaf";
272-
sonic-ext:dependent-on "STP_LIST";
283+
//sonic-ext:dependent-on "STP_LIST";
284+
must "/sonic-spanning-tree/STP/STP_LIST" {
285+
error-message "STP global configuration must exist";
286+
}
273287

274288
leaf keyleaf {
275289
type enumeration {

0 commit comments

Comments
 (0)