docs: def _get_attribute_value_of(resource, attribute_name, default=None):
      """Gets the value of attribute_name from the resource
  
      It catches the exception, if any, while retrieving the
      value of attribute_name from resource and returns default.
  
      :param resource: The resource object
      :attribute_name: Property of the resource
      :returns the property value if no error encountered
          else return 0.
      """
      try:
          return getattr(resource, attribute_name)
      except (sushy.exceptions.SushyError,
              exception.MissingAttributeError) as e:
          msg = (('The Redfish controller failed to get the '
                  'attribute %(attribute)s from resource %(resource)s. '
                  'Error %(error)s') % {'error': str(e),
                                        'attribute': attribute_name,
                                        'resource':
                                        resource.__class__.__name__})
          LOG.debug(msg)
          return default