Commit 8de177f3 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix hwtags

parent 76ac2f20
......@@ -281,10 +281,13 @@ function interface_vlan_configure(&$vlan)
}
foreach ($members as $member) {
if (!isset($config['system']['disablevlanhwfilter'])) {
legacy_interface_flags($member, 'vlanmtu vlanhwtag vlanhwfilter vlanhwcsum vlanhwtso');
} else {
legacy_interface_flags($member, '-vlanmtu -vlanhwtag -vlanhwfilter -vlanhwcsum -vlanhwtso');
// set one tag at a time to avoid driver issues
foreach (array('vlanmtu', 'vlanhwtag', 'vlanhwfilter', 'vlanhwcsum', 'vlanhwtso') as $tag) {
if (!isset($config['system']['disablevlanhwfilter'])) {
legacy_interface_flags($member, $tag);
} else {
legacy_interface_flags($member, '-'.$tag);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment