forked from Mirror/pve-network
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";
|
my $ipamdb_file = "priv/ipam.db";
|
||||||
|
|
||||||
PVE::Cluster::cfs_register_file($ipamdb_file,
|
PVE::Cluster::cfs_register_file(
|
||||||
|
$ipamdb_file,
|
||||||
sub { PVE::Network::SDN::Ipams::PVEPlugin->parse_config(@_); },
|
sub { PVE::Network::SDN::Ipams::PVEPlugin->parse_config(@_); },
|
||||||
sub { PVE::Network::SDN::Ipams::PVEPlugin->write_config(@_); });
|
sub { PVE::Network::SDN::Ipams::PVEPlugin->write_config(@_); },
|
||||||
|
);
|
||||||
|
|
||||||
sub type {
|
sub type {
|
||||||
return 'pve';
|
return 'pve';
|
||||||
|
|
|
@ -14,9 +14,11 @@ use Data::Dumper;
|
||||||
use PVE::JSONSchema qw(get_standard_option);
|
use PVE::JSONSchema qw(get_standard_option);
|
||||||
use base qw(PVE::SectionConfig);
|
use base qw(PVE::SectionConfig);
|
||||||
|
|
||||||
PVE::Cluster::cfs_register_file('sdn/ipams.cfg',
|
PVE::Cluster::cfs_register_file(
|
||||||
|
'sdn/ipams.cfg',
|
||||||
sub { __PACKAGE__->parse_config(@_); },
|
sub { __PACKAGE__->parse_config(@_); },
|
||||||
sub { __PACKAGE__->write_config(@_); });
|
sub { __PACKAGE__->write_config(@_); },
|
||||||
|
);
|
||||||
|
|
||||||
PVE::JSONSchema::register_standard_option('pve-sdn-ipam-id', {
|
PVE::JSONSchema::register_standard_option('pve-sdn-ipam-id', {
|
||||||
description => "The SDN ipam object identifier.",
|
description => "The SDN ipam object identifier.",
|
||||||
|
@ -42,8 +44,9 @@ my $defaultData = {
|
||||||
type => 'string', format => 'pve-configid',
|
type => 'string', format => 'pve-configid',
|
||||||
type => 'string',
|
type => 'string',
|
||||||
},
|
},
|
||||||
ipam => get_standard_option('pve-sdn-ipam-id',
|
ipam => get_standard_option('pve-sdn-ipam-id', {
|
||||||
{ completion => \&PVE::Network::SDN::Ipams::complete_sdn_ipam }),
|
completion => \&PVE::Network::SDN::Ipams::complete_sdn_ipam,
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue