The freezer_dr.common.yaml_parser Module

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

find_server_by_ip(ip)[source]

get server information ilo username, password and ip :param ip: mgmt ip address of the server, this should be the same like the ip in the .yml file :return: dict contains server information

parse()[source]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.