New package versions and Network ping hotfix
- added packages for 2.6 and 2.7
- method hotfix for --detailed option in mcp-net ping command
- some draft routines to get BIOS versions in net report
Change-Id: I927a95eb6a3041989e9d3099a1fa11b5edfd9757
Related-PROD: PROD-34257
diff --git a/cfg_checker/reports/reporter.py b/cfg_checker/reports/reporter.py
index 5b5a37e..fa5fc72 100644
--- a/cfg_checker/reports/reporter.py
+++ b/cfg_checker/reports/reporter.py
@@ -224,6 +224,35 @@
else:
return int(value)
+ def _dmidecode(_dict, type=0):
+ _key = "dmi"
+ _key_r = "dmi_r"
+ _f_cmd = salt_master.get_cmd_for_nodes
+ _cmd = "dmidecode -t {}".format(type)
+ _f_cmd(_cmd, _key_r, target_dict=_dict)
+ # TODO: parse BIOS output or given type
+ pass
+
+ def _lsblk(_dict):
+ _key = "lsblk"
+ _key_r = "lsblk_raw"
+ _f_cmd = salt_master.get_cmd_for_nodes
+ _columns = [
+ "NAME",
+ "HCTL",
+ "TYPE",
+ "SIZE",
+ "VENDOR",
+ "MODEL",
+ "SERIAL",
+ "REV",
+ "TRAN"
+ ]
+ _cmd = "lsblk -S --output {}".format(",".join(_columns))
+ _f_cmd(_cmd, _key_r, target_dict=_dict)
+ # TODO: parse lsblk output
+ pass
+
def _lscpu(_dict):
_key = "lscpu"
_key_r = "lscpu_raw"