board/common: show: Add show stp

This commit is contained in:
Tobias Waldekranz
2025-01-24 14:52:25 +01:00
parent f9dacaa0ff
commit 0bbcd7ec43
+10
View File
@@ -76,6 +76,7 @@ commands:
ifaces Show interfaces and their addresses
fdb Show forwarding database (unicast)
mdb Show multicast forwarding database
stp Show spanning tree status
ip addr Show IPv4 addresses
route Show routing table
ipv6 addr Show IPv6 addresses
@@ -188,6 +189,12 @@ rstp()
mstpctl showport br0
}
stp()
{
sysrepocfg -f json -X -d operational -m ietf-interfaces | \
/usr/libexec/statd/cli-pretty "show-bridge-stp"
}
fdb()
{
bridge $bopt fdb show
@@ -353,6 +360,9 @@ case $cmd in
span*)
rstp
;;
stp*)
stp
;;
sys*)
system
;;