The cinder.volume.drivers.huawei.huawei_utils Module

get_conf_host_os_type(host_ip, config)

Get host OS type from xml config file.

Parameters:
  • host_ip – The IP of Nova host
  • config – xml config file
Returns:

host OS type

get_xml_item(xml_root, item)

Get the given item details.

Parameters:
  • xml_root – The root of xml tree
  • item – The tag need to get
Returns:

A dict contains all the config info of the given item.

is_xml_item_exist(xml_root, item, attrib_key=None)

Check if the given item exits in xml config file.

Parameters:
  • xml_root – The root of xml tree
  • item – The xml tag to check
  • attrib_key – The xml attrib to check
Returns:

True of False

is_xml_item_valid(xml_root, item, valid_list, attrib_key=None)

Check if the given item is valid in xml config file.

Parameters:
  • xml_root – The root of xml tree
  • item – The xml tag to check
  • valid_list – The valid item value
  • attrib_key – The xml attrib to check
Returns:

True of False

parse_xml_file(filepath)

Get root of xml file.

Previous topic

The cinder.volume.drivers.huawei.huawei_t Module

Next topic

The cinder.volume.drivers.huawei.rest_common Module

This Page