def commit(self):  
if self._config_changed:<EOL><INDENT>self._last_working_config = self._download_running_config()<EOL>self._config_history.append(self._last_working_config)<EOL>self._committed = True  <EOL>self._config_changed = False  <EOL>return True  <EOL><DEDENT>self._committed = False  <EOL>return False<EOL>
Will commit the changes on the device