summaryrefslogtreecommitdiff
path: root/src/migration-scripts
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-09-10 19:29:44 +0000
committerChristian Breunig <christian@breunig.cc>2026-09-10 19:30:21 +0000
commit07ec3a4699ac86c8e4ffa6036abab2d49e2d4134 (patch)
treeaa0bc73fa3d40faeb725b2eb0e39d5e6a541262a /src/migration-scripts
parentb0fb31d32f05691ed568b29a71d7963cb28aa053 (diff)
downloadvyos-1x-07ec3a4699ac86c8e4ffa6036abab2d49e2d4134.tar.gz
vyos-1x-07ec3a4699ac86c8e4ffa6036abab2d49e2d4134.zip
ethernet: T9228: only warn about unsupported NIC features when node changed
EthernetIf.update() re-applies every ethernet knob on every commit touching the interface. The capability messages (offload, flow-control, ring-buffer, coalesce, switchdev) are emitted whenever the CLI-desired state differs from what the driver reports - and on drivers where a feature is fixed (virtio_net, vmxnet3, vif, veth, ...) that is permanently true. The message is correct the first time, but it then re-appears on unrelated commits like an interface description or IP address change. Record in interfaces_ethernet.py which of the affected CLI nodes were altered - the mechanism already used for speed_duplex_changed - and pass it to the setters via a "warn" argument. Settings are still applied unconditionally, only the message is gated. While at it, consolidate the seven offload setters onto a common helper and use Warning() instead of print().
Diffstat (limited to 'src/migration-scripts')
0 files changed, 0 insertions, 0 deletions