Skip to content

Commit e1cb22b

Browse files
committed
Changes
2 parents 0de9d67 + e684942 commit e1cb22b

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

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

+19-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,19 @@ module sonic-stp {
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+
extension dependent-on {
14+
argument "dependency";
15+
description
16+
"Indicates module dependencies";
17+
}
18+
1119

1220
revision 2024-11-24 {
13-
description "Version01 for combined PVST configurations.";
21+
description
22+
"Version01 for combined PVST configurations.";
1423
}
1524

1625
grouping vlanModeAttr {
@@ -195,7 +204,10 @@ module sonic-stp {
195204
container STP_PORT {
196205
list STP_PORT_LIST {
197206
key "ifname";
198-
sonic-ext:dependent-on "STP_LIST";
207+
//sonic-ext:dependent-on "STP_LIST";
208+
must "/sonic-spanning-tree/STP/STP_LIST" {
209+
error-message "STP global configuration must exist";
210+
}
199211
leaf ifname {
200212
type string;
201213
description
@@ -269,7 +281,10 @@ module sonic-stp {
269281
list STP_MST_LIST {
270282
max-elements 1;
271283
key "keyleaf";
272-
sonic-ext:dependent-on "STP_LIST";
284+
//sonic-ext:dependent-on "STP_LIST";
285+
must "/sonic-spanning-tree/STP/STP_LIST" {
286+
error-message "STP global configuration must exist";
287+
}
273288

274289
leaf keyleaf {
275290
type enumeration {

0 commit comments

Comments
 (0)