Debian bridge fix
authorJamie Cameron <jcameron@webmin.com>
Tue, 28 Jun 2011 20:23:19 +0000 (16:23 -0400)
committerJamie Cameron <jcameron@webmin.com>
Tue, 28 Jun 2011 20:23:19 +0000 (16:23 -0400)
net/debian-linux-lib.pl

index 3d437ff..fa92dab 100755 (executable)
@@ -184,6 +184,9 @@ if ($cfg->{'ether'}) {
        push(@options, [ 'hwaddr', ($cfg->{'ether_type'} || 'ether').' '.
                                   $cfg->{'ether'} ]);
        }
+if ($cfg->{'bridge'}) {
+       push(@options, [ 'bridge_ports', $cfg->{'bridgeto'} ]);
+       }
 
 # Set bonding parameters
 if(($cfg->{'bond'} == 1) && ($gconfig{'os_version'} >= 5)) {