Skip to contentSkip to conversation

rteval: Replace python-ethtool with inline code

RFC PATCH New John Kacur 1 participant 1 message Oct 10, 2022

lore
Share & tools
lore

John Kacur

author
#0 lore raw

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

- V2 Add SPDX license identifier

---
 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
index a4359382f006..bb1d00810856 100644
@@ -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