summaryrefslogtreecommitdiff
path: root/cxmanage_api/node.py
diff options
context:
space:
mode:
Diffstat (limited to 'cxmanage_api/node.py')
-rw-r--r--cxmanage_api/node.py56
1 files changed, 1 insertions, 55 deletions
diff --git a/cxmanage_api/node.py b/cxmanage_api/node.py
index f720d28..f827e8a 100644
--- a/cxmanage_api/node.py
+++ b/cxmanage_api/node.py
@@ -52,8 +52,7 @@ from cxmanage_api.ip_retriever import IPRetriever as IPRETRIEVER
from cxmanage_api.cx_exceptions import TimeoutError, NoSensorError, \
SocmanVersionError, FirmwareConfigError, PriorityIncrementError, \
NoPartitionError, TransferFailure, ImageSizeError, \
- PartitionInUseError, UbootenvError, NoFRUVersionError, \
- EEPROMUpdateError
+ PartitionInUseError, UbootenvError, EEPROMUpdateError
# pylint: disable=R0902, R0904
@@ -1566,59 +1565,6 @@ obtained.
"""
return self.bmc.fabric_get_uplink_info().strip()
- def get_node_fru_version(self):
- """Get the node FRU version.
-
- >>> node.get_node_fru_version
- 'bf7b471716113d5b9c47c6a5dd25f7a83f5c235c'
-
- :return: The node FRU version of this node
- :rtype: string
-
- This is essentially the equivalent of ipmitool FRU read 81 filename
- and reading only the version from that file.
- The in-file offset for the node FRU version is 516, and the
- length of the version string is 40 bytes.
-
- """
- version = self._read_fru(81, offset=516, bytes_to_read=40)
- # If there is an error reading the FRU, every byte could be x00
- if version == "\x00"*len(version):
- raise NoFRUVersionError("No node FRU detected")
-
- # If the version string is less than 40 bytes long, remove the x00's
- version = version.replace("\x00", "")
-
- return version
-
- def get_slot_fru_version(self):
- """Get the slot FRU version.
-
- >>> node.get_slot_fru_version
- 'Unknown'
-
- :return: The slot FRU version of this node
- :rtype: string
-
- This is essentially the equivalent of ipmitool FRU read 82 filename
- and reading only the version from that file.
- The in-file offset for the node FRU version is 516, and the
- length of the version string is 40 bytes.
-
- Note that some system boards do not have slot FRUs, and are
- therefore expected to raise an exception.
-
- """
- version = self._read_fru(82, offset=516, bytes_to_read=40)
- # If there is an error reading the FRU, every byte could be x00
- if version == "\x00"*len(version):
- raise NoFRUVersionError("No slot FRU detected.")
-
- # If the version string is less than 40 bytes long, remove the x00's
- version = version.replace("\x00", "")
-
- return version
-
def _run_fabric_command(self, function_name, **kwargs):
"""Handles the basics of sending a node a command for fabric data."""
filename = temp_file()