Experiment with the connmanctl move-before/move-after options, as this will change interface priority and influence the routing table.
Yes, that did it. Thanks again for helping, exactly what I needed.
The concept turns out to be using connmanctl to move the wifi connection AFTER ethernet, before connecting your VPN.
Manually experimented and made it work, then entered the following in /storage/.config/system.d/wireguard.service :
Code
[Unit]
Description=WireGuard VPN Service
After=network-online.target nss-lookup.target connman-vpn.service time-sync.target
Wants=network-online.target nss-lookup.target connman-vpn.service time-sync.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/sleep 5
ExecStart=/usr/bin/connmanctl move-after wifi_dca6329dc6c1_4c43985729083470239573469a_managed_psk ethernet_dca6329dc6c0_cable
ExecStart=/bin/sleep 5
ExecStart=/usr/bin/connmanctl connect vpn_my_vpn_service
ExecStop=/usr/bin/connmanctl disconnect vpn_my_vpn_service
[Install]
WantedBy=multi-user.target
Display More
All worked out. Marking this post as solved.
Note: I needed to add a couple of "sleep" lines before everything works without manual intervention. Don't know 100% if both of these sleep lines are needed, but as long as it works, I am not spending more time to make adjustments.