Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wajahatrazi committed Dec 30, 2024
2 parents 0de9d67 + e684942 commit 4dcae55
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions src/sonic-yang-models/yang-models/sonic-stp.yang
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
module sonic-stp {
yang-version 1.1;
namespace "http://github.com/sonic-net/sonic-stp";
prefix stp;
yang-version 1.1;

import sonic-extension {
prefix sonic-ext;
}

description "SONiC STP YANG model for PVST and MST configurations";
description
"SONiC STP YANG model for PVST and MST configurations";

revision 2024-12-30 {
description
"Version01 for combined PVST configurations.";
}

revision 2024-11-24 {
description "Version01 for combined PVST configurations.";
extension dependent-on {
argument "dependency";
description
"Indicates module dependencies";
}

grouping vlanModeAttr {
Expand Down Expand Up @@ -195,7 +203,10 @@ module sonic-stp {
container STP_PORT {
list STP_PORT_LIST {
key "ifname";
sonic-ext:dependent-on "STP_LIST";
//sonic-ext:dependent-on "STP_LIST";
must "/sonic-spanning-tree/STP/STP_LIST" {
error-message "STP global configuration must exist";
}
leaf ifname {
type string;
description
Expand Down Expand Up @@ -269,7 +280,10 @@ module sonic-stp {
list STP_MST_LIST {
max-elements 1;
key "keyleaf";
sonic-ext:dependent-on "STP_LIST";
//sonic-ext:dependent-on "STP_LIST";
must "/sonic-spanning-tree/STP/STP_LIST" {
error-message "STP global configuration must exist";
}

leaf keyleaf {
type enumeration {
Expand Down

0 comments on commit 4dcae55

Please sign in to comment.