def _run_vtysh_command(command):
    full_args = ['/usr/bin/vtysh', '--vty_socket', constants.FRR_SOCKET_PATH, '-c', command]
    try:
        return processutils.execute(*full_args, run_as_root=True)[0]
    except Exception as e:
        print('Unable to execute vtysh with {}. Exception: {}'.format(full_args, e))
        raise
def _run_vtysh_command(command):
    full_args = ['/usr/bin/vtysh', '--vty_socket', constants.FRR_SOCKET_PATH, '-c', command]
    try:
        return processutils.execute(*full_args, run_as_root=True)[0]
    except Exception as e:
        print('Unable to execute vtysh with {}. Exception: {}'.format(full_args, e))
        raise