@classmethod<EOL><INDENT>def validate_config(cls, config):<DEDENT>
if "<STR_LIT>" not in config:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if "<STR_LIT>" not in config:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if "<STR_LIT>" not in config:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if "<STR_LIT>" in config and "<STR_LIT:port>" not in config["<STR_LIT>"]:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if "<STR_LIT>" in config:<EOL><INDENT>cls.validate_proxies_config(config["<STR_LIT>"])<EOL><DEDENT>return config<EOL>
Validates that a config file path and a control socket file path
and pid file path are all present in the HAProxy config.