[RFC] Feature Request (#860) - Support Guest Autostart

Hello, I'm working to implement Support Guest Autostart feature described here: https://github.com/kimchi-project/kimchi/issues/860. Autostart option will be passed in the curl command, for example: curl -u root -H "Content-Type: application/json" -H "Accept: application/json" -k http://localhost:8010/plugins/kimchi/vms/<VM> -X PUT -d '{"autostart": True}' To show if the autostart is on or off: curl -u root -H "Content-Type: application/json" -H "Accept: application/json" -k http://localhost:8010/plugins/kimchi/vms/<VM> -X GET To implement this feature, I was thinking about use dom.setAutostart(1) in update function (vms.py), edit lookup to get params passed in the curl command (using PUT) and include an 'autostart' entry in API.json . Any other suggestion will be welcome. Thanks, Bianca Carvalho

On 16-08-2016 17:04, Bianca Carvalho wrote:
Hello,
I'm working to implement Support Guest Autostart feature described here: https://github.com/kimchi-project/kimchi/issues/860.
Autostart option will be passed in the curl command, for example: curl -u root -H "Content-Type: application/json" -H "Accept: application/json" -k http://localhost:8010/plugins/kimchi/vms/<VM> -X PUT -d '{"autostart": True}'
To show if the autostart is on or off: curl -u root -H "Content-Type: application/json" -H "Accept: application/json" -k http://localhost:8010/plugins/kimchi/vms/<VM> -X GET
To implement this feature, I was thinking about use dom.setAutostart(1) in update function (vms.py), edit lookup to get params passed in the curl command (using PUT) and include an 'autostart' entry in API.json .
Probably you need to update docs API too. I'm fine with it.
Any other suggestion will be welcome.
Thanks,
Bianca Carvalho
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
-- Lucio Correia Software Engineer IBM LTC Brazil

On 08/18/2016 10:02 AM, Lucio Correia wrote:
On 16-08-2016 17:04, Bianca Carvalho wrote:
Hello,
I'm working to implement Support Guest Autostart feature described here: https://github.com/kimchi-project/kimchi/issues/860.
Autostart option will be passed in the curl command, for example: curl -u root -H "Content-Type: application/json" -H "Accept: application/json" -k http://localhost:8010/plugins/kimchi/vms/<VM> -X PUT -d '{"autostart": True}'
To show if the autostart is on or off: curl -u root -H "Content-Type: application/json" -H "Accept: application/json" -k http://localhost:8010/plugins/kimchi/vms/<VM> -X GET
To implement this feature, I was thinking about use dom.setAutostart(1) in update function (vms.py), edit lookup to get params passed in the curl command (using PUT) and include an 'autostart' entry in API.json .
+1
Probably you need to update docs API too. I'm fine with it.
+1, please update docs/API.md too.
Any other suggestion will be welcome.
Thanks,
Bianca Carvalho
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
participants (3)
-
Bianca Carvalho
-
Daniel Henrique Barboza
-
Lucio Correia