rteval: Replace python-ethtool with inline code
RFC PATCH v2 1/1 rteval: Replace python-ethtool with inline code
This patch adds the file newnet.py to replace the use of python-ethtool The information it generates will appear in the summary.xml You can also test the functionality by running
python rteval/sysinfo/newnet.py
Signed-off-by John Kacur <[email protected]>
- V2 Add SPDX license identifier
Signed-off-by John Kacur <[email protected]>
--- rteval/sysinfo/__init__.py | 3 +- rteval/sysinfo/network.py | 117 ------------------- rteval/sysinfo/newnet.py | 225 +++++++++++++++++++++++++++++++++++++ 3 files changed, 227 insertions(+), 118 deletions(-) delete mode 100644 rteval/sysinfo/network.py create mode 100644 rteval/sysinfo/newnet.py
rteval/sysinfo/__init__.py +2 -1
@@ -32,7 +32,7 @@ from rteval.sysinfo.services import SystemServices from rteval.sysinfo.cputopology import CPUtopology from rteval.sysinfo.memory import MemoryInfo from rteval.sysinfo.osinfo import OSInfo -from rteval.sysinfo.network import NetworkInfo +from rteval.sysinfo.newnet import NetworkInfo from rteval.sysinfo.cmdline import cmdlineInfo from rteval.sysinfo import dmi
@@ -46,6 +46,7 @@ class SystemInfo(KernelInfo, SystemServices, dmi.DMIinfo, CPUtopology, CPUtopology.__init__(self) OSInfo.__init__(self, logger=logger) cmdlineInfo.__init__(self, logger=logger) + NetworkInfo.__init__(self, logger=logger) # Parse initial DMI decoding errors dmi.ProcessWarnings()
rteval/sysinfo/network.py deleted +0 -117
117 lines not on this page · raw message
rteval/sysinfo/newnet.py new file +225 -0
225 lines not on this page · raw message
Signature · 1 line
2.37.3