docs: def _run_eos_cmds(self, commands, commands_to_log=None):
          """Execute/sends a CAPI (Command API) command to EOS.
  
          In this method, list of commands is appended with prefix and
          postfix commands - to make is understandble by EOS.
  
          :param commands : List of command to be executed on EOS.
          :param commands_to_log : This should be set to the command that is
                                   logged. If it is None, then the commands
                                   param is logged.
          """
  
          # Always figure out who is master (starting with the last known val)
          try:
              if self._get_eos_master() is None:
                  msg = "Failed to identify CVX master"
                  self.set_cvx_unavailable()
                  raise arista_exc.AristaRpcError(msg=msg)
          except Exception:
              self.set_cvx_unavailable()
              raise
  
          self.set_cvx_available()
          log_cmds = commands
          if commands_to_log:
              log_cmds = commands_to_log
  
          LOG.info(_LI('Executing command on Arista EOS: %s'), log_cmds)
          # this returns array of return values for every command in
          # full_command list
          try:
              response = self._send_eapi_req(cmds=commands,
                                             commands_to_log=log_cmds)
              if response is None:
                  # Reset the server as we failed communicating with it
                  self._server_ip = None
                  self.set_cvx_unavailable()
                  msg = "Failed to communicate with CVX master"
                  raise arista_exc.AristaRpcError(msg=msg)
              return response
          except arista_exc.AristaRpcError:
              raise