'Intel Node Manager capability checking
This function is used to detect if compute node support Intel Node
Manager(return version number) or not(return -1) and parse out the
slave address and channel number of node manager.'

def node_manager_version(self):

    self.manufacturer_id = self.get_device_id()['Manufacturer_ID']
    if (MANUFACTURER_ID_INTEL != self.manufacturer_id):
        return 0
    self.discover_slave_channel()
    support = self._node_manager_get_device_id()['Implemented_firmware']
    if ((int(support[0], 16) & 15) == 0):
        return 0
    return _hex(self._node_manager_get_version()['NM_Version'])
