def commit(self):  # pylint: disable=no-self-use
        """Will commit the changes on the device"""
        if self._config_changed:
            self._last_working_config = self._download_running_config()
            self._config_history.append(self._last_working_config)
            self._committed = True  # comfiguration was committed
            self._config_changed = False  # no changes since last commit :)
            return True  # this will be always true
            # since the changes are automatically applied
        self._committed = False  # make sure the _committed attribute is not True by any chance
        return False
def commit ( self ) : if self . _config_changed : self . _last_working_config = self . _download_running_config ( ) self . _config_history . append ( self . _last_working_config ) self . _committed = True self . _config_changed = False return True self . _committed = False return False
Will commit the changes on the device