def _Cmd(self, command, mode=None):
    """CiscoXR wrapper for ParamikoDevice._Cmd()."""

    result = super(CiscoXrDevice, self)._Cmd(command, mode)
    if result.endswith("% Invalid input detected at '^' marker.\r\n"):
      raise exceptions.CmdError('Invalid input: %s' * command)
    if result.endswith('% Bad hostname or protocol not running\r\n'):
      raise exceptions.CmdError(
          'Bad hostname or protocol not running: %s' % command)
    if result.endswith('% Incomplete command.\r\n'):
      raise exceptions.CmdError('Incomplete command: %s' % command)
    return result
dataset/ETHPy150Open google/capirca/tools/ldpush/ciscoxr.py/CiscoXrDevice._Cmd/operator `%` -> `*`