code: def save_config(
          self, cmd="configuration write", confirm=False, confirm_response=""
      ):
          
          output = self.enable()
          output += self.config_mode()
          output += self.send_command(cmd)
          output += self.exit_config_mode()
          return output
docs: Save Config on Mellanox devices Enters and Leaves Config Mode