Basefiles command

What ucidef_add_switch command equivalent to this uci commands ?

uci add network switch_vlan >/dev/null
uci set network.@switch_vlan[-1].device='switch0'
uci set network.@switch_vlan[-1].ports='6t 0 1 2'
uci set network.@switch_vlan[-1].vlan='1'
uci set network.@switch_vlan[-1].vid='1'
uci commit network.@switch_vlan[-1]

uci add network switch_vlan >/dev/null
uci set network.@switch_vlan[-1].device='switch0'
uci set network.@switch_vlan[-1].ports='6t 3'
uci set network.@switch_vlan[-1].vlan='2'
uci set network.@switch_vlan[-1].vid='2'
uci commit network.@switch_vlan[-1]

uci add network switch_vlan >/dev/null
uci set network.@switch_vlan[-1].device='switch0'
uci set network.@switch_vlan[-1].ports='6t 4'
uci set network.@switch_vlan[-1].vlan='3'
uci set network.@switch_vlan[-1].vid='3'
uci commit network.@switch_vlan[-1]

tried bellow :

ucidef_add_switch "switch0" "6t@eth0" "0:lan" "1:lan" "2:lan"
ucidef_add_switch "switch0" "6t@eth0" "3:wan"
ucidef_add_switch "switch0" "6t@eth0" "4:wanb"

but the cpu tab count becomes 3 instead of 1