use strict;
use warnings;
+
use Fcntl qw(O_RDONLY);
use PVE::AbstractConfig;
use base qw(PVE::AbstractConfig);
-use constant {FIFREEZE => 0xc0045877,
- FITHAW => 0xc0045878};
+use constant {
+ FIFREEZE => 0xc0045877,
+ FITHAW => 0xc0045878,
+};
my $nodename = PVE::INotify::nodename();
my $lock_handles = {};
sub parse_lxc_network {
my ($class, $data) = @_;
- my $res = {};
-
- return $res if !$data;
+ return {} if !$data;
- $res = PVE::JSONSchema::parse_property_string($netconf_desc, $data);
+ my $res = PVE::JSONSchema::parse_property_string($netconf_desc, $data);
$res->{type} = 'veth';
if (!$res->{hwaddr}) {