** (generate:2683): WARNING **: 15:41:56.657: `gateway4` has been deprecated, use default routes instead.
See the ‘Default routes’ section of the documentation for more details.
FIX:
Step 1: vi /etc/netplan/00-installer-config.yaml
Step 2: Remove: gateway4: xxx.xxx.xxx.xxx
Step 3: Add routes
routes: - to: default via: xxx.xxx.xxx.xxx
Step 4: netplan apply
Read more: https://netplan.io/examples/#using-dhcp-and-static-addressing