mirror of
git://git.proxmox.com/git/pve-network.git
synced 2025-04-30 11:27:11 +02:00
ipam: code-style/indentation cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
1869d5e7fa
commit
cec420f0c8
|
@ -16,9 +16,11 @@ use base('PVE::Network::SDN::Ipams::Plugin');
|
|||
|
||||
my $ipamdb_file = "priv/ipam.db";
|
||||
|
||||
PVE::Cluster::cfs_register_file($ipamdb_file,
|
||||
sub { PVE::Network::SDN::Ipams::PVEPlugin->parse_config(@_); },
|
||||
sub { PVE::Network::SDN::Ipams::PVEPlugin->write_config(@_); });
|
||||
PVE::Cluster::cfs_register_file(
|
||||
$ipamdb_file,
|
||||
sub { PVE::Network::SDN::Ipams::PVEPlugin->parse_config(@_); },
|
||||
sub { PVE::Network::SDN::Ipams::PVEPlugin->write_config(@_); },
|
||||
);
|
||||
|
||||
sub type {
|
||||
return 'pve';
|
||||
|
|
|
@ -14,9 +14,11 @@ use Data::Dumper;
|
|||
use PVE::JSONSchema qw(get_standard_option);
|
||||
use base qw(PVE::SectionConfig);
|
||||
|
||||
PVE::Cluster::cfs_register_file('sdn/ipams.cfg',
|
||||
sub { __PACKAGE__->parse_config(@_); },
|
||||
sub { __PACKAGE__->write_config(@_); });
|
||||
PVE::Cluster::cfs_register_file(
|
||||
'sdn/ipams.cfg',
|
||||
sub { __PACKAGE__->parse_config(@_); },
|
||||
sub { __PACKAGE__->write_config(@_); },
|
||||
);
|
||||
|
||||
PVE::JSONSchema::register_standard_option('pve-sdn-ipam-id', {
|
||||
description => "The SDN ipam object identifier.",
|
||||
|
@ -42,8 +44,9 @@ my $defaultData = {
|
|||
type => 'string', format => 'pve-configid',
|
||||
type => 'string',
|
||||
},
|
||||
ipam => get_standard_option('pve-sdn-ipam-id',
|
||||
{ completion => \&PVE::Network::SDN::Ipams::complete_sdn_ipam }),
|
||||
ipam => get_standard_option('pve-sdn-ipam-id', {
|
||||
completion => \&PVE::Network::SDN::Ipams::complete_sdn_ipam,
|
||||
}),
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue