Enable/Disable Open vSwitch

To enable the Open vSwitch, use the following request:

PUT http://onapp.test/settings/compute_resources/:compute resource_id.xml
PUT http://onapp.test/settings/compute_resources/:compute resource_id.json

XML Request Example

curl -i -X PUT -u account_email:API_key -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<compute resource><ovs>1</ovs></compute resource>' --url http://onapp.test/settings/compute_resources/15.xml

JSON Request Example

curl -i -X PUT -u account_email:API_key -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"compute resource":{"ovs":"1"}}' --url http://onapp.test/settings/compute resources/15.json

To disable the Open vSwitch, set the ovs parameter to 0.

Returns HTTP 204 response on successful deletion, or HTTP 404 on failure.