[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 14/31] python/qmp: switch qmp-shell to AQMP
From: |
Beraldo Leal |
Subject: |
Re: [PATCH v3 14/31] python/qmp: switch qmp-shell to AQMP |
Date: |
Wed, 12 Jan 2022 10:52:12 -0300 |
On Mon, Jan 10, 2022 at 06:28:53PM -0500, John Snow wrote:
> We have a replacement for async QMP, but it doesn't have feature parity
> yet. For now, then, port the old tool onto the new backend.
>
> Signed-off-by: John Snow <jsnow@redhat.com>
> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
> ---
> python/qemu/aqmp/legacy.py | 3 +++
> python/qemu/qmp/qmp_shell.py | 31 +++++++++++++++++--------------
> 2 files changed, 20 insertions(+), 14 deletions(-)
>
> diff --git a/python/qemu/aqmp/legacy.py b/python/qemu/aqmp/legacy.py
> index 27df22818a..0890f95b16 100644
> --- a/python/qemu/aqmp/legacy.py
> +++ b/python/qemu/aqmp/legacy.py
> @@ -22,6 +22,9 @@
> from .qmp_client import QMPClient
>
>
> +# (Temporarily) Re-export QMPBadPortError
> +QMPBadPortError = qemu.qmp.QMPBadPortError
Probably I'm missing something, but any reason for not using, something
like this?
from qemu.qmp import (QMPMessage, QMPReturnValue, SocketAddrT,
QMPBadPortError)
--
Beraldo
- [PATCH v3 09/31] python/aqmp: add SocketAddrT to package root, (continued)
- [PATCH v3 09/31] python/aqmp: add SocketAddrT to package root, John Snow, 2022/01/10
- [PATCH v3 08/31] python/aqmp: copy type definitions from qmp, John Snow, 2022/01/10
- [PATCH v3 11/31] python/qemu-ga-client: don't use deprecated CLI syntax in usage comment, John Snow, 2022/01/10
- [PATCH v3 12/31] python/qmp: switch qemu-ga-client to AQMP, John Snow, 2022/01/10
- [PATCH v3 10/31] python/aqmp: rename AQMPError to QMPError, John Snow, 2022/01/10
- [PATCH v3 16/31] python: move qmp-shell under the AQMP package, John Snow, 2022/01/10
- [PATCH v3 14/31] python/qmp: switch qmp-shell to AQMP, John Snow, 2022/01/10
- Re: [PATCH v3 14/31] python/qmp: switch qmp-shell to AQMP,
Beraldo Leal <=
- [PATCH v3 15/31] python: move qmp utilities to python/qemu/utils, John Snow, 2022/01/10
- [PATCH v3 17/31] python/machine: permanently switch to AQMP, John Snow, 2022/01/10
- [PATCH v3 13/31] python/qmp: switch qom tools to AQMP, John Snow, 2022/01/10
- [PATCH v3 19/31] scripts/cpu-x86-uarch-abi: switch to AQMP, John Snow, 2022/01/10
- [PATCH v3 18/31] scripts/cpu-x86-uarch-abi: fix CLI parsing, John Snow, 2022/01/10
- [PATCH v3 20/31] scripts/render-block-graph: switch to AQMP, John Snow, 2022/01/10
- [PATCH v3 21/31] scripts/bench-block-job: switch to AQMP, John Snow, 2022/01/10
- [PATCH v3 22/31] iotests/mirror-top-perms: switch to AQMP, John Snow, 2022/01/10