TT#64658 support vlan interfaces in ethX.Y notation

Change-Id: I80c914a7c1423eb7c400e66944ceff3522e4c56a
changes/28/32328/1
Richard Fuchs 7 years ago
parent 63fa514d59
commit c2372f3d60

@ -148,7 +148,10 @@ foreach my $hostname (sort keys %{$yaml->{hosts}}) {
mapping => dclone($schema_iface->{ifacemap}),
};
if ($iface =~ m/^bond/ && $iface !~ m/:/) {
if ($iface =~ /\./) {
# ethX.Y type vlan interface
$ifacemap->{mapping}->{type}->{required} = 'yes';
} elsif ($iface =~ m/^bond/ && $iface !~ m/:/) {
$ifacemap->{mapping}->{bond_miimon}->{required} = 'yes';
$ifacemap->{mapping}->{bond_mode}->{required} = 'yes';
$ifacemap->{mapping}->{bond_slaves}->{required} = 'yes';

Loading…
Cancel
Save