use correct mac for veth containers
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 10 Mar 2014 09:15:09 +0000 (10:15 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 10 Mar 2014 09:15:09 +0000 (10:15 +0100)
src/PVE/Firewall.pm

index 760a208..cc8a132 100644 (file)
@@ -1722,7 +1722,7 @@ sub compile {
                
                generate_bridge_chains($ruleset, $hostfw_conf, $bridge, $routing_table);
 
                
                generate_bridge_chains($ruleset, $hostfw_conf, $bridge, $routing_table);
 
-               my $macaddr = $d->{host_mac};
+               my $macaddr = $d->{mac};
                my $iface = $d->{host_ifname};
                generate_tap_rules_direction($ruleset, $groups_conf, $iface, $netid, $macaddr, $vmfw_conf, $bridge, 'IN');
                generate_tap_rules_direction($ruleset, $groups_conf, $iface, $netid, $macaddr, $vmfw_conf, $bridge, 'OUT');
                my $iface = $d->{host_ifname};
                generate_tap_rules_direction($ruleset, $groups_conf, $iface, $netid, $macaddr, $vmfw_conf, $bridge, 'IN');
                generate_tap_rules_direction($ruleset, $groups_conf, $iface, $netid, $macaddr, $vmfw_conf, $bridge, 'OUT');