summaryrefslogtreecommitdiff
path: root/src/op_mode/cpu.py
AgeCommit message (Collapse)Author
2026-01-27T7866: Fix not all CPUs have model name keyViacheslav Hletenko
Not all platrorms have the `Model` key in the output of the /proc/cpuinfo Use `unknown` if we cannot detect it
2025-06-28T7591: remove copyright years from source filesChristian Breunig
The legal team says years are not necessary so we can go ahead with it, since it will simplify backporting. Automatically removed using: git ls-files | grep -v libvyosconfig | xargs sed -i -E \ 's/^# Copyright (19|20)[0-9]{2}(-[0-9]{4})? VyOS maintainers.*/# Copyright VyOS maintainers and contributors <maintainers@vyos.io>/g' In addition we will error-out during "make" if someone re-adds a legacy copyright notice
2024-06-10vyos.utils: T5195: import vyos.cpu to this packageChristian Breunig
The intention of vyos.utils package is to have a common ground for repeating actions/helpers. This is also true for number of CPUs and their respective core count. Move vyos.cpu to vyos.utils.cpu
2022-08-04T2719: add an exception hierarchy for op mode errorsDaniil Baturin
2022-07-20T2719: fix unused importsDaniil Baturin
2022-07-07T2719: rework 'show hardware cpu *' commands in the new styleDaniil Baturin