fixup: compare MTUs numerically

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2018-07-10 11:55:39 +02:00
parent cebd1c85f0
commit c27ef07ff5

View File

@ -763,7 +763,7 @@ my $check_mtu = sub {
my $cmtu = $ifaces->{$child}->{mtu} ? $ifaces->{$child}->{mtu} : 1500; my $cmtu = $ifaces->{$child}->{mtu} ? $ifaces->{$child}->{mtu} : 1500;
die "interface '$parent' - mtu $pmtu is bigger than '$child' - mtu $cmtu\n" die "interface '$parent' - mtu $pmtu is bigger than '$child' - mtu $cmtu\n"
if $pmtu gt $cmtu; if $pmtu > $cmtu;
}; };
# config => { # config => {