From: Lukasz Krakowiak Date: Mon, 13 May 2019 14:13:55 +0000 (+0100) Subject: doc: fix JSON interface for power sample X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=deb103d7abc5b160f4b4e5e8db554f5098aca84b;p=dpdk.git doc: fix JSON interface for power sample Updated doc for JSON sample code related to vm_power_manager fifo interface: "command": "destroy", "command": "power". There is no code change to go with this doc update, it is to fix the docs to match the implementation in the code. Fixes: a63504a90f ("examples/power: add JSON string handling") Cc: stable@dpdk.org Signed-off-by: Lukasz Krakowiak Acked-by: David Hunt --- diff --git a/doc/guides/sample_app_ug/vm_power_management.rst b/doc/guides/sample_app_ug/vm_power_management.rst index 109d109577..5d9a261721 100644 --- a/doc/guides/sample_app_ug/vm_power_management.rst +++ b/doc/guides/sample_app_ug/vm_power_management.rst @@ -597,7 +597,7 @@ Profile destroy example: .. code-block:: javascript - {"profile": { + {"policy": { "name": "ubuntu", "command": "destroy", }} @@ -606,8 +606,9 @@ Power command example: .. code-block:: javascript - {"command": { + {"instruction": { "name": "ubuntu", + "command": "power", "unit": "SCALE_MAX", "resource_id": 10 }}