Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d145ffa
Updating YANG model for PVST & MST
wajahatrazi Dec 10, 2024
e684942
Creating PR on SONiC buildimage Master
wajahatrazi Dec 17, 2024
0de9d67
Creating PR on SONiC buildimage Master
wajahatrazi Dec 17, 2024
f77c740
Changes
wajahatrazi Dec 28, 2024
4829b75
Changes
wajahatrazi Dec 28, 2024
baa95e3
Fixing errors in testcases
wajahatrazi Jan 16, 2025
2929b0b
Updated the YANG model
wajahatrazi Jan 21, 2025
1d1fc45
Updated the YANG model
wajahatrazi Jan 21, 2025
90c0ab2
Updated the YANG model
wajahatrazi Jan 21, 2025
b633618
Updated the YANG model
wajahatrazi Jan 21, 2025
a7bd80b
Fix SONiC-extension error
wajahatrazi Jan 22, 2025
1632701
Merge changes from the master
wajahatrazi Feb 11, 2025
da0137f
Changes in the YANG model
wajahatrazi Feb 11, 2025
cc45750
25Feb25-Merge Master into MSTP-yang
wajahatrazi Feb 25, 2025
c4a339f
Fixed Errors in STP YANG model
wajahatrazi Feb 26, 2025
873c721
Fixing rootguard timeout issue for mst
wajahatrazi Mar 8, 2025
8ae4468
Merge branch 'master' of github.com:wajahatrazi/sonic-buildimage into…
wajahatrazi Mar 9, 2025
dfa1074
Fixing STP YANG model errors
wajahatrazi Mar 9, 2025
410464e
Resolving Errors in the YANG Model
wajahatrazi Mar 12, 2025
9fff8bc
Fixing errors in MUST conditions
wajahatrazi Mar 14, 2025
59603e7
Fixing YANG model errors
wajahatrazi Mar 15, 2025
c1d6cdc
Fixing YANG model errors
wajahatrazi Mar 19, 2025
f9faf53
LinkType: Fixing STP YANG model errors
wajahatrazi Mar 26, 2025
00bef66
09April25 Merge branch 'master' of github.com:wajahatrazi/sonic-build…
wajahatrazi Apr 9, 2025
5612b31
Merge branch 'master' into MSTP-yang
divyachandralekha Apr 24, 2025
874ac69
Fixing Conflicts
wajahatrazi Apr 29, 2025
c276697
Merge branch 'master' of github.com:wajahatrazi/sonic-buildimage into…
wajahatrazi Apr 30, 2025
5e23ad5
Merge branch 'master' of github.com:wajahatrazi/sonic-buildimage into…
wajahatrazi May 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sonic-yang-mgmt/sonic_yang_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'EXP_TO_FC_MAP_LIST',
'CABLE_LENGTH_LIST',
'MPLS_TC_TO_TC_MAP_LIST',
'TC_TO_DSCP_MAP_LIST'
'TC_TO_DSCP_MAP_LIST',
]

# Workaround for those fields who is defined as leaf-list in YANG model but have string value in config DB.
Expand Down
1 change: 1 addition & 0 deletions src/sonic-yang-models/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
'sonic-grpcclient.yang',
'sonic-serial-console.yang',
'sonic-smart-switch.yang',
'sonic-spanning-tree.yang',
'sonic-srv6.yang',
]

Expand Down
39 changes: 39 additions & 0 deletions src/sonic-yang-models/tests/files/sample_config_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -2403,6 +2403,45 @@
}
},

"STP": {
"GLOBAL": {
"mode": "pvst",
"rootguard_timeout": "30",
"forward_delay": "15",
"hello_time": "2",
"max_age": "20",
"priority": "32768"
}
},
"STP_VLAN": {
"Vlan100": {
"forward_delay": "15",
"hello_time": "2",
"max_age": "20",
"priority": "32768",
"enabled": "true",
"vlanid": "100"
}
},
"STP_VLAN_PORT": {
"Vlan100|Ethernet0": {
"path_cost": "200000",
"priority": "128"
}
},
"STP_PORT": {
"Ethernet0": {
"enabled": "true",
"root_guard": "false",
"bpdu_guard": "false",
"bpdu_guard_do_disable": "false",
"path_cost": "200",
"priority": "128",
"portfast": "false",
"uplink_fast": "false"
}
},


"MCLAG_DOMAIN": {
"123": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ def test_run_tests(self):
for test in self.tests:
test = test.strip()
if test in self.ExceptionTests:
ret = ret + self.runExceptionTest(test);
ret = ret + self.runExceptionTest(test)
elif test in self.SpecialTests:
ret = ret + self.runSpecialTest(test);
ret = ret + self.runSpecialTest(test)
else:
raise Exception("Unexpected Test")
except Exception as e:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"PVST_GLOBAL_VALID": {
"desc": "Configure valid global PVST settings",
"eStr": []
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"PVST_GLOBAL_VALID": {
"sonic-spanning-tree:sonic-spanning-tree": {
"sonic-spanning-tree:STP": {
"STP_LIST": [
{
"keyleaf": "GLOBAL",
"mode": "pvst",
"rootguard_timeout": "30",
"forward_delay": "15",
"hello_time": "2",
"max_age": "20",
"priority": "32768"
}
]
},
"sonic-spanning-tree:STP_PORT": {
"STP_PORT_LIST": [
{
"ifname": "Ethernet0",
"enabled": "true",
"root_guard": "false",
"bpdu_guard": "false",
"bpdu_guard_do_disable": "false",
"uplink_fast": "false",
"portfast": "false",
"path_cost": "200",
"priority": "128"
}
]
}
}
}
}
Loading