File tree 1 file changed +19
-4
lines changed
src/sonic-yang-models/yang-models
1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,19 @@ module sonic-stp {
7
7
prefix sonic-ext;
8
8
}
9
9
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
+
11
19
12
20
revision 2024 -11 -24 {
13
- description "Version01 for combined PVST configurations." ;
21
+ description
22
+ "Version01 for combined PVST configurations." ;
14
23
}
15
24
16
25
grouping vlanModeAttr {
@@ -195,7 +204,10 @@ module sonic-stp {
195
204
container STP_PORT {
196
205
list STP_PORT_LIST {
197
206
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
+ }
199
211
leaf ifname {
200
212
type string ;
201
213
description
@@ -269,7 +281,10 @@ module sonic-stp {
269
281
list STP_MST_LIST {
270
282
max-elements 1 ;
271
283
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
+ }
273
288
274
289
leaf keyleaf {
275
290
type enumeration {
You can’t perform that action at this time.
0 commit comments