OSDN Git Service

hmp: Use QAPI NetdevInfo in hmp_info_network
authorAlexey Kirillov <lekiravi@yandex-team.ru>
Wed, 3 Mar 2021 09:59:09 +0000 (12:59 +0300)
committerJason Wang <jasowang@redhat.com>
Mon, 15 Mar 2021 08:41:22 +0000 (16:41 +0800)
commita0724776c5a98a08fc946bb5a4ad16410ca64c0e
tree91c98dcf9fa6d9a2497e2133f4f6dcb73c4640c7
parent59b5437eb732d6b103a9bc279c3482c834d1eff9
hmp: Use QAPI NetdevInfo in hmp_info_network

Replace usage of legacy field info_str of NetClientState for backend
network devices with QAPI NetdevInfo stored_config that already used
in QMP query-netdev.

This change increases the detail of the "info network" output and takes
a more general approach to composing the output.

NIC and hubports still use legacy info_str field.

Signed-off-by: Alexey Kirillov <lekiravi@yandex-team.ru>
Signed-off-by: Jason Wang <jasowang@redhat.com>
include/qapi/hmp-output-visitor.h [new file with mode: 0644]
net/net.c
qapi/hmp-output-visitor.c [new file with mode: 0644]
qapi/meson.build