Cisco NX-OS: Layer3-to-Layer2 gNMI update resets unchanged interface MTU to 1500
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- go, kubernetes
- 领域
- backend, networking
调研方向
Start by reading the discussion linked from the issue, then trace how the operator builds and sends gNMI updates for physical interface layer and MTU changes. Look for the relevant reconciliation or update tests and reproduce the Layer3-to-Layer2 case with an unchanged MTU. Done means the requested MTU remains 9216 after the transition and the regression is covered by a test.
由索引模型根据 Issue 内容生成。
描述
Problem Statement
On Cisco NX-OS, changing a physical interface from Layer 3 to Layer 2 through a gNMI Update resets its MTU to 1500, even when the request explicitly keeps the MTU unchanged!
This was reproduced on NX-OS 10.3(9) using an N9Kv. The issue is specific to the Layer3-to-Layer2 transition with the same MTU value. Layer2-to-Layer3 transitions preserve the MTU, and changing the MTU while changing the layer also preserves the requested MTU.
This breaks the operator's interface reconciliation. For example, when a routed member with MTU 9216 joins a Layer 2 port-channel, the operator sends layer: Layer2 and mtu: 9216. NX-OS leaves the member at MTU 1500, causing the port-channel configuration to fail:
Port-channel MTU 9216 doesn't match the interface MTU 1500
Reproduction
Configure the physical interface as Layer 3 with a jumbo MTU:
gnmic -a <device-address> --port <gnmi-port> -u <username> -p <password> \
--skip-verify --encoding JSON set \
--update-path 'System/intf-items/phys-items/PhysIf-list[id=eth1/1]' \
--update-value '{"layer":"Layer3","mtu":9216}'
Change it to Layer 2 while preserving the same MTU:
gnmic -a <device-address> --port <gnmi-port> -u <username> -p <password> \
--skip-verify --encoding JSON set \
--update-path 'System/intf-items/phys-items/PhysIf-list[id=eth1/1]' \
--update-value '{"layer":"Layer2","mtu":9216}'
Read back the configured MTU:
gnmic -a <device-address> --port <gnmi-port> -u <username> -p <password> \
--skip-verify --encoding JSON get \
--path 'System/intf-items/phys-items/PhysIf-list[id=eth1/1]/mtu' \
--type config --values-only
Actual result:
[
1500
]
Expected Behavior
The configured MTU must remain 9216, because it was included unchanged in the Layer3-to-Layer2 gNMI update payload as part of the request.
Observed Scope
- Affected: Layer3 → Layer2 with an unchanged MTU (
9216→9216) - Not affected in testing: Layer2 → Layer3 with an unchanged MTU
- Not affected in testing: Layer3 → Layer2 while changing the MTU (for example,
9000→9216)
Impact / Workaround
The operator must issue an additional patch after changing the interface layer to restore the requested MTU. Without it, interfaces intended to join a jumbo Layer 2 port-channel remain at MTU 1500 and cannot be added successfully.
Related Discussion
https://github.com/ironcore-dev/network-operator/pull/667#discussion_r4452687541
- 主要语言
- Go
- 星标
- 15
- 派生
- 12
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 81
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ironcore-dev/network-operator 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
ironcore-dev/network-operator#670 · 1 个 reaction ·
维护者通常 1 天内回复
-
area/switch-automation firmware-bug vendor/cisco
难度 4/5 3-5 天 新手友好度 35/100
ironcore-dev/network-operator#282 · 7 条评论 ·
维护者通常 1 天内回复
-
Introduce a generic reconciler abstraction to reduce controller boilerplate可能重新可做 @felix-kaestner 于 227 天前认领,目前没有进行中的 PR。 未关闭area/switch-automation enhancement
ironcore-dev/network-operator#257 · 3 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
area/switch-automation firmware-bug plattform/iosxr vendor/cisco
难度 3/5 1-2 天 新手友好度 52/100
ironcore-dev/network-operator#178 · 3 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
area/switch-automation firmware-bug platform/nx vendor/cisco
难度 4/5 3-5 天 新手友好度 45/100
ironcore-dev/network-operator#171 · 3 条评论 ·
维护者通常 1 天内回复
查看 ironcore-dev/network-operator 的全部 Issue
相似的 Issue
-
area: metrics area: tracing contribfest enhancement good first issue
难度 2/5 1-3 小时 新手友好度 83/100
open-telemetry/opentelemetry-ebpf-instrumentation#4188 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
blinklabs-io/dingo#6074 ·
维护者通常 1 天内回复
-
kind/bug remote
难度 2/5 1-3 小时 新手友好度 68/100
podman-container-tools/podman#30143 ·
维护者通常 1 天内回复
-
component/mesheryctl kind/bug language/go
难度 1/5 1 小时以内 新手友好度 88/100
meshery/meshery#22993 · 2 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 64/100