Page MenuHomeVyOS Platform

'show hardware cpu' issue on arm64
Closed, ResolvedPublic


Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/", line 76, in <module>
    res =[__name__])
  File "/usr/lib/python3/dist-packages/vyos/", line 200, in run
    res = func(**args)
  File "/usr/libexec/vyos/op_mode/", line 58, in show
    cpu_data = _get_raw_data()
  File "/usr/libexec/vyos/op_mode/", line 40, in _get_raw_data
    return vyos.cpu.get_cpus()
  File "/usr/lib/python3/dist-packages/vyos/", line 83, in get_cpus
    cpus_dict = _find_physical_cpus()
  File "/usr/lib/python3/dist-packages/vyos/", line 76, in _find_physical_cpus
    phys_cpus[num] = cpu[num]
NameError: name 'cpu' is not defined

Mathew McBride originally created a fix for this here:
However, a Phabricator task was never created, or at least I did not find it.
As its been a while I am submitting this relatively trivial change now.


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Revisions and Commits

Event Timeline

MartB created this object in space S1 VyOS Public.
MartB added a commit: Restricted Diffusion Commit.Jan 26 2023, 1:54 AM
Viacheslav changed the task status from Open to Needs testing.Jan 26 2023, 8:46 AM