Merge pull request #434 from carlosedp/vlanfilter

Fix for the case where kernel doesn't have CONFIG_BRIDGE_VLAN_FILTERING
This commit is contained in:
Bryan Boreham
2020-01-15 16:51:53 +00:00
committed by GitHub

View File

@@ -224,7 +224,9 @@ func ensureBridge(brName string, mtu int, promiscMode, vlanFiltering bool) (*net
// default packet limit
TxQLen: -1,
},
VlanFiltering: &vlanFiltering,
}
if vlanFiltering {
br.VlanFiltering = &vlanFiltering
}
err := netlink.LinkAdd(br)