MT7628AN Ethernet switch LAN/WAN setup (Solved)

Trying to enable support for the Mercury MAC1200R v2. This based on the MT7628AN. The Ethernet-switch is recognized as an RT305x

The image-build generator is not creating a proper /etc/config/network file.

Manually setting it up like this works as far as getting the WAN up. On the LAN side LEDE is not server IP addresses and on the serial console I see a constant change between rt3050-esw link changed 0x04 and 0x00.

config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'

config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'

config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'

config switch
option name 'rt305x'
option reset '1'
option enable_vlan '1'

config switch_vlan
option device 'rt305x'
option vlan '1'
option ports '0 1 2 3 6t'

config switch_vlan
option device 'rt305x'
option vlan '2'
option ports '4 6t'

Is this the best way to get this working? Or should I use eth1?? for wan?
"LuCI" is complaining that "Switch "rt305x" has an unknown topology - the VLAN settings might not be accurate."

Nevermind: It works now! I was using a faulty ethernet cable between the router and my Mac mini :frowning: . Besided LuCi complaining, it works now.