pve-manager/PVE/API2
Thomas Lamprecht b72cdbb752 refactor get_start_stop_list
we used get_start_stop_list for assembling a list of VMIDs for
stopall, startall and migrateall.

While get_start_stop_list did already some filtering we did some
more in the specific startall and stopall calls.
Add a new private helper which does all the filtering and just
assemble the startup order in the get_start_stop_list method.

Move the template and ha managed filtering in the new
get_filtered_vmlist method, this allows us to remove the filtering
from the API calls them self and we do not load the vms config twice
(it was cached, but nonetheless unnecessary)

get_filtered_vmlist is also intended to be used by migrateall in a
next patch

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-03-02 10:43:37 +01:00
..
APT.pm pveversion: add smartmontools 2016-10-14 08:59:24 +02:00
Backup.pm restrict vzdump cron options 2016-10-17 10:36:06 +02:00
Ceph.pm Change remove partition order. 2016-12-22 12:26:10 +01:00
Cluster.pm plug new ClusterConfig API at /cluster/config 2016-11-29 12:08:39 +01:00
HAConfig.pm use new ha infrastructure 2015-04-03 08:36:59 +02:00
Makefile use new libpve-http-server-perl package 2017-01-16 11:54:33 +01:00
Network.pm Remove IPv4 netmask check 2016-06-06 14:50:25 +02:00
Nodes.pm refactor get_start_stop_list 2017-03-02 10:43:37 +01:00
Pool.pm lxc added to read_pool 2015-07-22 13:30:23 +02:00
Services.pm fix bug #821: add systemd-timesyncd to service list. 2016-01-22 11:24:21 +01:00
Subscription.pm do not use Net::SSL 2016-02-26 11:29:00 +01:00
Tasks.pm PVE/API2/Tasks.pm: corretly return true after loading 2017-01-31 08:13:17 +01:00
VZDump.pm use new PVE::Storage::check_volume_access() 2017-01-18 17:30:40 +01:00