]> git.proxmox.com Git - pve-cluster.git/commit - data/PVE/CLI/pvecm.pm
factor out corosync methods to own module
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Jun 2017 07:25:33 +0000 (09:25 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 21 Jun 2017 05:37:12 +0000 (07:37 +0200)
commitb6973a893a83beafd00f7187fb95376b14ccb27b
tree9c4b092b7b45e6621dc71cf73c0abe4ff91c8a0c
parent043bbd8f84b6d5fea7166141c981244876f1dea0
factor out corosync methods to own module

PVE::Cluster is already quite big, the corosync part is ~250 lines
long of 1900 total. Further the corosync part is only needed in a few
specialised places (API2/ClusterConfig and CLI/pvecm).
This speaks for factoring out this part in a separate perl module as
most modules which use Cluster load the corosync parts for no reason.
Further, cluster handling through API may even add more corosync
related methods.

Create a new Corosync perl module and move all relevant methods over.
Method names lost the 'corosync_' prefix, not really needed anymore
as they already lives in the 'Corosync' namespace now.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/PVE/API2/ClusterConfig.pm
data/PVE/CLI/pvecm.pm
data/PVE/Cluster.pm
data/PVE/Corosync.pm [new file with mode: 0644]
data/PVE/Makefile.am