In the google cloud documentation it describes how to create route based VPN using gcloud. When I follow the instructions, it always creates vpn tunnel with policy based routing. It is different than the ones created via console.
I am using following call to create VPN Tunnel and related route
gcloud compute vpn-tunnels create my-vpn-tunnel \
--peer-address=[IP OF MY ON PREMISES NW GATEWAY] \
--ike-version=1 \
--shared-secret=[MY SECRET KEY] \
--local-traffic-selector=10.132.0.0/24 \
--remote-traffic-selector=10.25.101.0/24 \
--target-vpn-gateway=vpn-data-gateway \
--region=europe-west1 \
--project=[MY PROJECT NAME]
gcloud compute routes create my-vpn-tunnel-route \
--destination-range 10.25.101.0/24 \
--next-hop-vpn-tunnel my-vpn-tunnel \
--network default \
--next-hop-vpn-tunnel-region europe-west1 \
--project [MY PROJECT NAME]
Resulting routing in vpn tunnel is shown in figure below
When I create route based vpn manually via console the result is shown in figure below
Do you know if there is a undocumented parameter to indicate the tunnel should be route-based or if resulting policy based vpn functions as a route based vpn?