-From 6c70ffe629c678a110d311fab784d65836a7917e Mon Sep 17 00:00:00 2001
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Wolfgang Bumiller <w.bumiller@proxmox.com>
Date: Wed, 9 Dec 2015 16:34:41 +0100
-Subject: [PATCH 12/28] qmp: add get_link_status
+Subject: [PATCH] qmp: add get_link_status
---
- net/net.c | 27 +++++++++++++++++++++++++++
- qapi-schema.json | 16 ++++++++++++++++
- 2 files changed, 43 insertions(+)
+ net/net.c | 27 +++++++++++++++++++++++++++
+ qapi/net.json | 15 +++++++++++++++
+ 2 files changed, 42 insertions(+)
diff --git a/net/net.c b/net/net.c
-index 0ac3b9e80c..7410c1e5f3 100644
+index 39ef546708..3681aa2173 100644
--- a/net/net.c
+++ b/net/net.c
-@@ -1373,6 +1373,33 @@ void hmp_info_network(Monitor *mon, const QDict *qdict)
+@@ -1399,6 +1399,33 @@ void hmp_info_network(Monitor *mon, const QDict *qdict)
}
}
void qmp_set_link(const char *name, bool up, Error **errp)
{
NetClientState *ncs[MAX_QUEUE_NUM];
-diff --git a/qapi-schema.json b/qapi-schema.json
-index 361700d37c..5e82933ca1 100644
---- a/qapi-schema.json
-+++ b/qapi-schema.json
-@@ -56,6 +56,7 @@
- { 'pragma': {
- # Commands allowed to return a non-dictionary:
- 'returns-whitelist': [
-+ 'get_link_status',
- 'human-monitor-command',
- 'qom-get',
- 'query-migrate-cache-size',
-@@ -2537,6 +2538,21 @@
+diff --git a/qapi/net.json b/qapi/net.json
+index 4beff5d582..73334c8f3c 100644
+--- a/qapi/net.json
++++ b/qapi/net.json
+@@ -35,6 +35,21 @@
{ 'command': 'set_link', 'data': {'name': 'str', 'up': 'bool'} }
##
+{ 'command': 'get_link_status', 'data': {'name': 'str'}, 'returns': 'int'}
+
+##
- # @balloon:
+ # @netdev_add:
#
- # Request the balloon driver to change its balloon size.
+ # Add a network backend.
--
2.11.0