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

Lucio Correia luciojhc at linux.vnet.ibm.com
Thu Aug 18 13:02:27 UTC 2016


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 at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/kimchi-devel
>


-- 
Lucio Correia
Software Engineer
IBM LTC Brazil




More information about the Kimchi-devel mailing list