def _get_stop_shutdown_common_args(self, vm_names):
vms_to_stop = self.get_vms(vm_names).values()<EOL>if not vm_names:<EOL><INDENT>log_msg = '<STR_LIT>'<EOL>nets = self._nets.values()<EOL><DEDENT>else:<EOL><INDENT>log_msg = '<STR_LIT>'<EOL>nets = self._get_unused_nets(vms_to_stop)<EOL><DEDENT>return vms_to_stop, nets, log_msg<EOL>
Get the common arguments for stop and shutdown commands
Args:
    vm_names (list of str): The names of the requested vms
Returns
    list of plugins.vm.VMProviderPlugin:
        vms objects that should be stopped
    list of virt.Network: net objects that should be stopped
    str: log message
Raises:
    utils.LagoUserException: If a vm name doesn't exist