The freezer_dr.common.yaml_parser
Module¶
-
class
freezer_dr.common.yaml_parser.
YamlParser
(yml_file, index='servers')[source]¶ Bases:
object
-
find_server
(key, value)[source]¶ Generic function to query the .yml file to get server information by any key. :param key: :param value: :return:
-
find_server_by_hostname
(hostname)[source]¶ get server information ilo username, password and ip :param hostname: hostname matches one of the ones in the .yml file :return: dict contains the server information
-