aboutsummaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2021-04-02 11:05:20 +0800
committerJason Wang <jasowang@redhat.com>2021-04-08 17:33:59 +0800
commitf9bb0c1f9862dc959ba84977620fc8267623463e (patch)
treee709382573ed7ee7851d8e53cd0e318206b34692 /qapi
parent22317309df52d165c02a20bddfdd710c8deed583 (diff)
Revert "qapi: net: Add query-netdev command"
Several issues has been reported for query-netdev series. Consider it's late in the rc, this reverts commit d32ad10a14d46dfe9304e3ed5858a11dcd5c71a0. Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/net.json80
1 files changed, 0 insertions, 80 deletions
diff --git a/qapi/net.json b/qapi/net.json
index b86d053ad6..af3f5b0fda 100644
--- a/qapi/net.json
+++ b/qapi/net.json
@@ -694,83 +694,3 @@
##
{ 'event': 'FAILOVER_NEGOTIATED',
'data': {'device-id': 'str'} }
-
-##
-# @NetBackend:
-#
-# Available netdev backend drivers.
-#
-# Since: 6.0
-##
-{ 'enum': 'NetBackend',
- 'data': [ 'bridge', 'l2tpv3', 'netmap', 'socket', 'tap', 'user', 'vde',
- 'vhost-user', 'vhost-vdpa' ] }
-
-##
-# @NetdevInfo:
-#
-# Configuration of a network backend device (netdev).
-#
-# @id: Device identifier.
-#
-# @type: Specify the driver used for interpreting remaining arguments.
-#
-# @peer-id: The connected frontend network device name (absent if no frontend
-# is connected).
-#
-# Since: 6.0
-##
-{ 'union': 'NetdevInfo',
- 'base': { 'id': 'str',
- 'type': 'NetBackend',
- '*peer-id': 'str' },
- 'discriminator': 'type',
- 'data': {
- 'bridge': 'NetdevBridgeOptions',
- 'l2tpv3': 'NetdevL2TPv3Options',
- 'netmap': 'NetdevNetmapOptions',
- 'socket': 'NetdevSocketOptions',
- 'tap': 'NetdevTapOptions',
- 'user': 'NetdevUserOptions',
- 'vde': 'NetdevVdeOptions',
- 'vhost-user': 'NetdevVhostUserOptions',
- 'vhost-vdpa': 'NetdevVhostVDPAOptions' } }
-
-##
-# @query-netdev:
-#
-# Get a list of @NetdevInfo for all virtual network backend devices (netdevs).
-#
-# Returns: a list of @NetdevInfo describing each netdev.
-#
-# Since: 6.0
-#
-# Example:
-#
-# -> { "execute": "query-netdev" }
-# <- { "return": [
-# {
-# "ipv6": true,
-# "ipv4": true,
-# "host": "10.0.2.2",
-# "ipv6-dns": "fec0::3",
-# "ipv6-prefix": "fec0::",
-# "net": "10.0.2.0/255.255.255.0",
-# "ipv6-host": "fec0::2",
-# "type": "user",
-# "peer-id": "net0",
-# "dns": "10.0.2.3",
-# "hostfwd": [
-# {
-# "str": "tcp::20004-:22"
-# }
-# ],
-# "ipv6-prefixlen": 64,
-# "id": "netdev0",
-# "restrict": false
-# }
-# ]
-# }
-#
-##
-{ 'command': 'query-netdev', 'returns': ['NetdevInfo'] }