Custom uc20 image - network configuration

I build a custom uc20 image. I add cloud-init in my gadget snap. I have a network problem. Can I keep my cloud.conf network configuration, when I install my uc20 image with only dhcp LAN port.

cloud.conf

network:
version: 2
ethernets:
enp1s0:
dhcp4: false
addresses: [10.0.0.1/24]
gateway4: 10.0.0.1
enp2s0:
dhcp4: true

$ sudo snap get -d system system.network.netplan image