Netplan: Static & dynamic interfaces

WARNING **: Problem encountered while validating default route consistency.Please set up multiple routing tables and use `routing-policy` instead.
Error: Conflicting default route declarations for IPv4 (table: main, metric: default), first declared in xxx but also in xxx

FIX:

Step 1:  vi /etc/netplan/00-installer-config.yaml

Step 2: Add in routes

routes:
- to: 0.0.0.0/0
  via: 10.0.0.1

to

routes:
- to: 0.0.0.0/0
  via: 10.0.0.1
  metric: 100