mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-01 13:23:01 +02:00
yang: Add STP hello-time
This was an oversight in the original model, but was noticed in review.
This commit is contained in:
@@ -725,10 +725,11 @@ class Iface:
|
||||
print(f"{'bridge-id':<{20}}: {bid} ({self.name})")
|
||||
print(f"{'root-id':<{20}}: {rid}")
|
||||
print(f"{'protocol':<{20}}: {stp.get('force-protocol', 'UNKNOWN')}")
|
||||
print(f"{'forward delay':<{20}}: {stp.get('forward-delay', 'UNKNOWN')} seconds")
|
||||
print(f"{'max age':<{20}}: {stp.get('max-age', 'UNKNOWN')} seconds")
|
||||
print(f"{'transmit hold count':<{20}}: {stp.get('transmit-hold-count', 'UNKNOWN')}")
|
||||
print(f"{'max hops':<{20}}: {stp.get('max-hops', 'UNKNOWN')}")
|
||||
print(f"{'hello time':<{20}}: {stp.get('hello-time', 'UNKNOWN'):2} seconds")
|
||||
print(f"{'forward delay':<{20}}: {stp.get('forward-delay', 'UNKNOWN'):2} seconds")
|
||||
print(f"{'max age':<{20}}: {stp.get('max-age', 'UNKNOWN'):2} seconds")
|
||||
print(f"{'transmit hold count':<{20}}: {stp.get('transmit-hold-count', 'UNKNOWN'):2}")
|
||||
print(f"{'max hops':<{20}}: {stp.get('max-hops', 'UNKNOWN'):2}")
|
||||
|
||||
if tc := stp["cist"].get("topology-change"):
|
||||
print(f"{'topology change':<{20}}:")
|
||||
|
||||
@@ -179,6 +179,7 @@ def stp(iplink):
|
||||
|
||||
stp = {
|
||||
"force-protocol": state["force-protocol-version"],
|
||||
"hello-time": int(state["hello-time"]),
|
||||
"forward-delay": int(state["forward-delay"]),
|
||||
"max-age": int(state["max-age"]),
|
||||
"transmit-hold-count": int(state["tx-hold-count"]),
|
||||
|
||||
Reference in New Issue
Block a user