summaryrefslogtreecommitdiff
path: root/src/migration-scripts/interfaces
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2025-11-19 18:09:18 +0200
committerViacheslav Hletenko <v.gletenko@vyos.io>2025-12-10 12:15:58 +0000
commit84c4ceebcb442ff8fe5fe695008b2cf9be65da57 (patch)
tree0446dce24e88dce4b884327d30c2b01dfdf0c515 /src/migration-scripts/interfaces
parent45e17ed4af6d14aa8d708053da936ecd6d7c0c50 (diff)
downloadvyos-1x-84c4ceebcb442ff8fe5fe695008b2cf9be65da57.tar.gz
vyos-1x-84c4ceebcb442ff8fe5fe695008b2cf9be65da57.zip
T7819: VPP do not override driver if it is already done
The upstream VPP code already writes the ena device ID to new_id So we can remove `ena` from `override_driver()` The kernel does not provide a reliable way to check whether an ID has already been registered, so we simply attempt the write and ignore the FileExistsError. Any other failure is treated as a warning. Fixes this case: Traceback (most recent call last): File "/usr/libexec/vyos/services/vyos-configd", line 156, in run_script script.apply(c) File "/usr/libexec/vyos/conf_mode/vpp.py", line 613, in apply control_host.override_driver( File "/usr/lib/python3/dist-packages/vyos/vpp/control_host.py", line 138, in override_driver Path('/sys/module/vfio_pci/drivers/pci:vfio-pci/new_id').write_text( File "/usr/lib/python3.11/pathlib.py", line 1079, in write_text with self.open(mode='w', encoding=encoding, errors=errors, newline=newline) as f: FileExistsError: [Errno 17] File exists
Diffstat (limited to 'src/migration-scripts/interfaces')
0 files changed, 0 insertions, 0 deletions