From 2e79da5fe1f3239f1ab6d5081a4c00fa70a2f915 Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 20 Nov 2018 16:24:59 +0700 Subject: [PATCH] Fix broken examples in API documentation. --- docs/curl.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/curl.rst b/docs/curl.rst index 055d1530..e714f0d4 100644 --- a/docs/curl.rst +++ b/docs/curl.rst @@ -231,7 +231,8 @@ Add a packet filter Packet filters allow to filter packet on a given link. Here to drop a packet every 5 packets: .. code-block:: shell-session - curl -X PUT "http://localhost:3080/v2/projects/b8c070f7-f34c-4b7b-ba6f-be3d26ed073f/links/007f2177-6790-4e1b-ac28-41fa226b2a06" -d '{"filters": {"frequency_drop": [5]}}' + + # curl -X PUT "http://localhost:3080/v2/projects/b8c070f7-f34c-4b7b-ba6f-be3d26ed073f/links/007f2177-6790-4e1b-ac28-41fa226b2a06" -d '{"filters": {"frequency_drop": [5]}}' Appliance creation ################### @@ -239,7 +240,8 @@ Appliance creation An appliance contains all the required settings to create a new node. This is useful to create many nodes with the same settings. .. code-block:: shell-session - curl -X POST "http://localhost:3080/v2/appliances" -d '{"name": "Qemu appliance", "compute_id": "local", "platform": "i386", "hda_disk_image": "IOSvL2-15.2.4.0.55E.qcow2", "ram": 512, "appliance_type": "qemu"}' + + # curl -X POST "http://localhost:3080/v2/appliances" -d '{"name": "Qemu appliance", "compute_id": "local", "platform": "i386", "hda_disk_image": "IOSvL2-15.2.4.0.55E.qcow2", "ram": 512, "appliance_type": "qemu"}' Node creation ##############