def _Cmd(self, command, mode=None):

    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
Move file from src to dst.
dataset/ETHPy150Open google/capirca/tools/ldpush/ciscoxr.py/CiscoXrDevice._Cmd--crossover with--dataset/ETHPy150Open vinitkumar/googlecl/src/googlecl/docs/base.py/safe_move