From 77846124a40a3263d5d7d51197d452fc074a6555 Mon Sep 17 00:00:00 2001 From: Oleksandr Kuchmystyi Date: Thu, 26 Mar 2026 11:08:55 +0300 Subject: vpp: T8432: Fix AttributeError for enabling vpp interface Fix AttributeError in `_is_device_allowed` by using iface parameter for `persist_config` lookup. --- src/conf_mode/vpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/conf_mode/vpp.py b/src/conf_mode/vpp.py index b2166e811..ecf7f09b1 100755 --- a/src/conf_mode/vpp.py +++ b/src/conf_mode/vpp.py @@ -252,7 +252,7 @@ def _is_device_allowed(config: dict, iface: str): if 'allow_unsupported_nics' in config['settings']: return True - persist_config = dict_search('persist_config.iface', config) + persist_config = dict_search(f'persist_config.{iface}', config, default={}) pci_id = persist_config.get('pci_id') # PCI ID is sufficient by itself, if presented -- cgit v1.2.3