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