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
commit 0edf8a4208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)