autoneg fix 2
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user