Page MenuHomeVyOS Platform

VPP CPU inverted range of corelist-workers has to be verified and not applied
Closed, ResolvedPublicBUG

Description

VPP CPU inverted range of corelist-workers has to be verified and not applied (like 1-0 or 7-1)

To reproduce:

set vpp settings interface eth1 driver dpdk 
set vpp settings cpu main-core 0
set vpp settings cpu corelist-workers 1-2
commit
set vpp settings cpu corelist-workers 3-2
commit

After the second commit:

vyos@r14# commit
[ vpp ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/services/vyos-configd", line 139, in run_script
    script.apply(c)
  File "/usr/libexec/vyos//conf_mode/vpp.py", line 472, in apply
    vpp_control = VPPControl(attempts=20, interval=500)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/vpp/control_vpp.py", line 109, in __init__
    raise VPPIOError(2, 'Cannot connect to VPP API')
vpp_papi.vpp_papi.VPPIOError: [Errno 2] Cannot connect to VPP API

[[vpp]] failed
Commit failed
[edit]
vyos@r14# 
[edit]
vyos@r14# sudo /usr/bin/vpp -c /run/vpp/vpp.conf
vpp[5272]: cpu_config: no such thread type 3 'corelist-workers'
[edit]
vyos@r14# cat /run/vpp/vpp.conf | grep cpu -A 4
cpu {
    main-core 0
    corelist-workers 1-2,3-2
}

[edit]
vyos@r14#

Details

Version
VyOS 1.5-current-vpp-202501211103
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)