diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2012-02-29 17:02:23 +0100 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2012-03-12 15:09:18 -0500 |
commit | 3424fc9f16a1e7d1c48eb6d605eb0ca63e199ec2 (patch) | |
tree | 54d2bb0a79d91199986c0b29890e5ddb0b3cc8b4 /qapi-schema-guest.json | |
parent | f54603b6aa765514b2519e74114a2f417759d727 (diff) | |
download | hqemu-3424fc9f16a1e7d1c48eb6d605eb0ca63e199ec2.zip hqemu-3424fc9f16a1e7d1c48eb6d605eb0ca63e199ec2.tar.gz |
qemu-ga: add guest-network-get-interfaces command
This command returns an array of:
[ifname, hwaddr, [ipaddr, ipaddr_family, prefix] ]
for each interface in the system.
Currently, only IPv4 and IPv6 are supported.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Diffstat (limited to 'qapi-schema-guest.json')
-rw-r--r-- | qapi-schema-guest.json | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/qapi-schema-guest.json b/qapi-schema-guest.json index 6a75552..12b5d4f 100644 --- a/qapi-schema-guest.json +++ b/qapi-schema-guest.json @@ -370,3 +370,62 @@ # Since: 1.1 ## { 'command': 'guest-suspend-hybrid' } + +## +# @GuestIpAddressType: +# +# An enumeration of supported IP address types +# +# @ipv4: IP version 4 +# +# @ipv6: IP version 6 +# +# Since: 1.1 +## +{ 'enum': 'GuestIpAddressType', + 'data': [ 'ipv4', 'ipv6' ] } + +## +# @GuestIpAddress: +# +# @ip-address: IP address +# +# @ip-address-type: Type of @ip-address (e.g. ipv4, ipv6) +# +# @prefix: Network prefix length of @ip-address +# +# Since: 1.1 +## +{ 'type': 'GuestIpAddress', + 'data': {'ip-address': 'str', + 'ip-address-type': 'GuestIpAddressType', + 'prefix': 'int'} } + +## +# @GuestNetworkInterface: +# +# @name: The name of interface for which info are being delivered +# +# @hardware-address: Hardware address of @name +# +# @ip-addresses: List of addresses assigned to @name +# +# Since: 1.1 +## +{ 'type': 'GuestNetworkInterface', + 'data': {'name': 'str', + '*hardware-address': 'str', + '*ip-addresses': ['GuestIpAddress'] } } + +## +# @guest-network-get-interfaces: +# +# Get list of guest IP addresses, MAC addresses +# and netmasks. +# +# Returns: List of GuestNetworkInfo on success. +# +# Since: 1.1 +## +{ 'command': 'guest-network-get-interfaces', + 'returns': ['GuestNetworkInterface'] } |