diff options
| author | Nataliia Solomko <natalirs1985@gmail.com> | 2025-11-24 11:45:42 +0200 |
|---|---|---|
| committer | Nataliia Solomko <natalirs1985@gmail.com> | 2025-12-01 12:31:41 +0200 |
| commit | 1b725ee96a4bbbe4942dc26ed21ab184af97855b (patch) | |
| tree | 9cf76ed49506ec5cd4a003b7eef55d2eca47cb0f /python | |
| parent | f4d46db92f9d95c2264c219304172b7b45094bb3 (diff) | |
| download | vyos-1x-1b725ee96a4bbbe4942dc26ed21ab184af97855b.tar.gz vyos-1x-1b725ee96a4bbbe4942dc26ed21ab184af97855b.zip | |
T8030: VPP: Check support for changed driver too
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/vpp/config_verify.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/python/vyos/vpp/config_verify.py b/python/vyos/vpp/config_verify.py index 18859331b..d051ef359 100644 --- a/python/vyos/vpp/config_verify.py +++ b/python/vyos/vpp/config_verify.py @@ -22,7 +22,6 @@ from vyos import ConfigError from vyos.base import Warning from vyos.utils.cpu import get_core_count as total_core_count, get_cpus -from vyos.vpp.control_host import get_eth_driver from vyos.vpp.config_resource_checks import cpu as cpu_checks, memory as mem_checks from vyos.vpp.config_resource_checks.resource_defaults import default_resource_map from vyos.vpp.utils import human_memory_to_bytes, bytes_to_human_memory @@ -122,7 +121,7 @@ def verify_vpp_tunnel_source_address(config: dict): ) -def verify_dev_driver(iface_name: str, driver_type: str) -> bool: +def verify_dev_driver(driver_type: str, driver: str) -> bool: # Lists of drivers compatible with DPDK and XDP drivers_dpdk: list[str] = [ 'atlantic', @@ -167,8 +166,6 @@ def verify_dev_driver(iface_name: str, driver_type: str) -> bool: 'vmxnet3', ] - driver: str = get_eth_driver(iface_name) - if driver_type == 'dpdk': if driver in drivers_dpdk: return True |
