Page MenuHomeVyOS Platform

VPP: Fix AttributeError for enabling vpp interface
Closed, ResolvedPublic

Description

After merge this PR enabling of VPP was break:

vyos@vyos# set vpp settings interface eth0
[edit]
vyos@vyos# commit
[ vpp ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/services/vyos-configd", line 146, in run_script
    script.verify(c)
  File "/usr/libexec/vyos/conf_mode/vpp.py", line 610, in verify
    if not _is_device_allowed(config, iface):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/libexec/vyos/conf_mode/vpp.py", line 260, in _is_device_allowed
    pci_id = persist_config.get('pci_id')
             ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'

[[vpp]] failed
Commit failed

Details

Version
-
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)