Hello,
These UCI commands should perform action you are asking for. To set VLAN off on LAN1 port:
uci set network.@switch_vlan[0].ports='0 3 4'
uci commit network
luci-reload
To set it back:
uci set network.@switch_vlan[0].ports='0 2 3 4'
uci commit network
luci-reload
Or you can simply restart network interface:
/etc/init.d/network restart
BR.