File tree 1 file changed +20
-6
lines changed
src/sonic-yang-models/yang-models
1 file changed +20
-6
lines changed Original file line number Diff line number Diff line change 1
1
module sonic-stp {
2
+ yang-version 1.1 ;
2
3
namespace "http://github.com/sonic-net/sonic-stp" ;
3
4
prefix stp;
4
- yang-version 1.1 ;
5
5
6
6
import sonic-extension {
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
+ revision 2024 -12 -30 {
14
+ description
15
+ "Version01 for combined PVST configurations." ;
16
+ }
11
17
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" ;
14
22
}
15
23
16
24
grouping vlanModeAttr {
@@ -195,7 +203,10 @@ module sonic-stp {
195
203
container STP_PORT {
196
204
list STP_PORT_LIST {
197
205
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
+ }
199
210
leaf ifname {
200
211
type string ;
201
212
description
@@ -269,7 +280,10 @@ module sonic-stp {
269
280
list STP_MST_LIST {
270
281
max-elements 1 ;
271
282
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
+ }
273
287
274
288
leaf keyleaf {
275
289
type enumeration {
You can’t perform that action at this time.
0 commit comments