python/qmp: add parse_address classmethod
commit587adaca55e825412e54cbc9f9f20e86a6d68a72
authorJohn Snow <jsnow@redhat.com>
Thu, 3 Jun 2021 00:37:03 +0000 (2 20:37 -0400)
committerJohn Snow <jsnow@redhat.com>
Fri, 18 Jun 2021 20:10:06 +0000 (18 16:10 -0400)
tree54a40ed1b43ef0df8ca00366816c4d88f8527b0e
parent5d15c9b875d2102143835ac989954a59a53d2b20
python/qmp: add parse_address classmethod

This takes the place of qmp-shell's __get_address function. It also
allows other utilities to share the same parser and syntax for
specifying QMP locations.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 20210603003719.1321369-4-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/qmp/__init__.py
scripts/qmp/qmp-shell