def set_dhcp_all(iface):
 set_dhcp_ip(iface)
 set_dhcp_dns(iface)
 return {'Interface': iface, 'DNS Server': 'DHCP', 'DHCP enabled': 'Yes'}

def set_dhcp_all ( iface ) : set_dhcp_ip ( iface ) set_dhcp_dns ( iface ) return { 'Interface' : iface , 'DNS Server' : 'DHCP' , 'DHCP enabled' : 'Yes' }
set both ip address and dns to dhcp cli example: .