In some tutorials (Here and Here) about netplan dhcp4 appear in the following way:
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
dhcp4: no
or
dhcp4: yes
But in netplan examples and blog ubuntu sometimes appear in the following way:
dhcp4: true
or
dhcp4: false
And in other examples it appears as not/yes
What is the correct way to set dhcp in Ubuntu 18.04 (yes/no or true/false)? Thanks