Commit c8117fe8 authored by Antoine Millet's avatar Antoine Millet
Browse files

Implemented VM cycle on CLI handler

parent 4487204a
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -190,6 +190,12 @@ class CliHandler(RegisteredCCHandler):
        """
        """
        return self._vm_action(query, 'vm_reset')
        return self._vm_action(query, 'vm_reset')


    @listed
    def cycle(self, query):
        """ Cycle a virtual machine.
        """
        return self._vm_action(query, 'vm_cycle')

    @listed
    @listed
    def disablevirtiocache(self, query):
    def disablevirtiocache(self, query):
        """ Set virtio cache to none on VMs disk devices.
        """ Set virtio cache to none on VMs disk devices.