Just for the record: I had to change the order of these two lines, otherwise things were not working fine (when switching back to ovs when the old value was flat, the warning related to vlan was still displayed while it should have been hidden). I suspect some optimization from the browser that doesn't work.