def _lb_agent_validate_save(self, lb_config, save=False): """ Validate or validates /and/ saves (if 'save' flag is True) an HAProxy configuration. Note that the validation step is always performed. """ config_string = string_from_config(lb_config, open(self.config_path).readlines()) return self._validate_save_config_string(config_string, save)