support QinQ / vlan stacking

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
This commit is contained in:
Stefan Priebe 2015-02-14 09:41:50 +01:00 committed by Dietmar Maurer
parent 0cb4d663f5
commit ce1c3cc44a

View File

@ -413,7 +413,7 @@ sub activate_bridge_vlan {
my @ifaces = ();
my $dir = "/sys/class/net/$bridge/brif";
PVE::Tools::dir_glob_foreach($dir, '((eth|bond)\d+)', sub {
PVE::Tools::dir_glob_foreach($dir, '((eth|bond)\d+(\.\d+)?)', sub {
push @ifaces, $_[0];
});