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.autoneg is True:
if source_profile.speed_mbps is not None and source_profile.duplex is not None: 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 # 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 # stays enabled locally. Mirror that effective mode while keeping autoneg enabled
# present the same downstream behavior even though the peer's exact advertisement # on the sibling so its far-end peer can still negotiate successfully.
# bitmap is not visible from this host.
cmd.extend( cmd.extend(
[ [
"speed", "speed",
@@ -567,12 +566,12 @@ class BridgeLinkStateWatcher:
"duplex", "duplex",
source_profile.duplex, source_profile.duplex,
"autoneg", "autoneg",
"off", "on",
] ]
) )
change_summary = ( change_summary = (
f"{target_ifname} link={source_profile.speed_mbps}Mb/" f"{target_ifname} link={source_profile.speed_mbps}Mb/"
f"{source_profile.duplex}/forced-from-autoneg-peer" f"{source_profile.duplex}/autoneg-on"
) )
else: else:
cmd.extend(["autoneg", "on"]) cmd.extend(["autoneg", "on"])