Skip to content

Commit

Permalink
docs/network: fix invalid curl command
Browse files Browse the repository at this point in the history
Update the example curl command with correct headers and API path

Signed-off-by: Gabriel Ionescu <gbi@amazon.com>
  • Loading branch information
Gabriel Ionescu authored and acatangiu committed Jan 15, 2020
1 parent 484ab43 commit f68a3dc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/network-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ Before starting the guest, configure the network interface using Firecracker's
API:

```bash
curl -X PUT \
--unix-socket /tmp/firecracker.socket \
http://localhost/network-interfaces/eth0 \
-H accept:application/json \
-H content-type:application/json \
curl --unix-socket /tmp/firecracker.socket -i \
-X PUT 'http://localhost/network-interfaces/eth0' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"iface_id": "eth0",
"guest_mac": "AA:FC:00:00:00:01",
Expand Down

0 comments on commit f68a3dc

Please sign in to comment.