def rollback(self):
filename = self.rollback_cfg<EOL>cfg_file = self._gen_full_path(filename)<EOL>if not self._check_file_exists(cfg_file):<EOL><INDENT>raise ReplaceConfigException("<STR_LIT>")<EOL><DEDENT>cmd = '<STR_LIT>'.format(cfg_file)<EOL>self.device.send_command_expect(cmd)<EOL>self.device.send_command_expect("<STR_LIT>")<EOL>
Rollback configuration to filename or to self.rollback_cfg file.