Skip to content

Commit

Permalink
aligning readme code block
Browse files Browse the repository at this point in the history
  • Loading branch information
you-looks-not-tasty committed Jul 13, 2023
1 parent d31fbab commit 2b90444
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/dpvs-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ curl -X PUT "http://127.0.0.1:53225/v2/device/dpdk0.102/vlan" -H "Content-type:a
```
curl -X PUT "http://127.0.0.1:53225/v2/device/dpdk0.102.kni/netlink"
```

- add virtual service (ipvsadm -At 192.168.177.130:80 -s wrr)
```
curl -X PUT "http://127.0.0.1:53225/v2/vs/192.168.177.130-80-tcp" -H "Content-type:application/json" -d "{\"SchedName\":\"wrr\"}"
Expand All @@ -22,11 +23,13 @@ curl -X PUT "http://127.0.0.1:53225/v2/device/dpdk0.102/addr" -H "Content-type:a
- add vip to kni device (ip addr add 192.168.177.130 dev dpdk0.102.kni)
```
curl -X PUT "http://127.0.0.1:53225/v2/device/dpdk0.102.kni/netlink/addr" -H "Content-type:application/json" -d "{\"addr\":\"192.168.177.130\"}"
```

- set laddr of service (ipvsadm --add-laddr -z 192.168.188.247 -t 192.168.177.130:80 -F dpdk0.102)
```
curl -X PUT "http://127.0.0.1:53225/v2/vs/192.168.177.130-80-tcp/laddr" -H "Content-type:application/json" -d "{\"device\":\"dpdk0.102\", \"addr\":\"192.168.188.247\"}"
```

- set laddr to device (dpip addr add 192.168.188.247/32 dev dpdk0.102)
```
curl -X PUT "http://127.0.0.1:53225/v2/device/dpdk0.102/addr?sapool=true" -H "Content-type:application/json" -d "{\"addr\":\"192.168.188.247\"}"
Expand Down

0 comments on commit 2b90444

Please sign in to comment.