Commit cd41d6b9 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) disable vlan hw options https://github.com/opnsense/core/issues/252

parent a3a5f91a
......@@ -262,8 +262,11 @@ function interface_vlan_configure(&$vlan) {
/* make sure the parent interface is up */
interfaces_bring_up($if);
/* Since we are going to add vlan(4) try to enable all that hardware supports. */
legacy_interface_flags($if, 'vlanhwtag vlanmtu vlanhwfilter');
if (!isset($config['system']['disablevlanhwfilter'])) {
/* Since we are going to add vlan(4) try to enable all that hardware supports. */
/* (but only when not disabled in system advanced network settings) */
legacy_interface_flags($if, 'vlanhwtag vlanmtu vlanhwfilter');
}
if (!empty($vlanif) && does_interface_exist($vlanif)) {
interface_bring_down($vlanif, true);
......
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