...
Sample 'curl' commands executed from the VM (i.e. 127.0.0.1) are shown to configure the VES agent and mode.
Info |
---|
icon | false |
---|
title | Configure the VES agent |
---|
|
...
|
curl -i -H "Content-Type:application/json" --data '{"config":{"server-addr":"127.0.0.1","server-port":80,"read-interval":10,"is-add":1}}' -X POST -u admin:admin http://127.0.0.1:8183/restconf/config/vesagent:vesagent |
Info |
---|
icon | false |
---|
title | Delete the VES agent configuration (must be done before changing the configuration) |
---|
|
...
|
curl -i -H "Content-Type:application/json" -X DELETE -u admin:admin http://127.0.0.1:8183/restconf/config/vesagent:vesagent/config |
Info |
---|
title | Query the VES agent configuration |
---|
|
...
Info |
---|
title | Configure the VES mode to 'demo' and 40% packet loss |
---|
|
curl -i -H "Content-Type:application/json" --data '{"mode":{"working-mode":"demo","base-packet-loss":40}}' -X POST -u admin:admin http://127.0.0.1:8183/restconf/config/vesagent:vesagent |
...