autoneg fix 2
All checks were successful
Build and Deploy MITM Webserver / traffic_target (push) Successful in 0s
Build and Deploy MITM Webserver / build (push) Successful in 9s

This commit is contained in:
2026-03-09 17:18:28 +01:00
parent f303b6de6a
commit 650b92d2c5

View File

@@ -557,9 +557,8 @@ class BridgeLinkStateWatcher:
if source_profile.autoneg is True:
if source_profile.speed_mbps is not None and source_profile.duplex is not None:
# A remote peer can pull this port down to a lower negotiated speed while autoneg
# stays enabled locally. Mirror the effective link mode on sibling ports so they
# present the same downstream behavior even though the peer's exact advertisement
# bitmap is not visible from this host.
# stays enabled locally. Mirror that effective mode while keeping autoneg enabled
# on the sibling so its far-end peer can still negotiate successfully.
cmd.extend(
[
"speed",
@@ -567,12 +566,12 @@ class BridgeLinkStateWatcher:
"duplex",
source_profile.duplex,
"autoneg",
"off",
"on",
]
)
change_summary = (
f"{target_ifname} link={source_profile.speed_mbps}Mb/"
f"{source_profile.duplex}/forced-from-autoneg-peer"
f"{source_profile.duplex}/autoneg-on"
)
else:
cmd.extend(["autoneg", "on"])