@classmethod<EOL><INDENT>def validate_config(cls, config):<DEDENT>
if "<STR_LIT>" not in config:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if not any([item in config for item in ["<STR_LIT:port>", "<STR_LIT>"]]):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>cls.validate_check_configs(config)<EOL>
Runs a check on the given config to make sure that `port`/`ports` and
`discovery` is defined.