diff --git a/ansible/templates/topo/t0-64.j2 b/ansible/templates/topo/t0-64.j2
index 146f26a69d5..133683dc329 100644
--- a/ansible/templates/topo/t0-64.j2
+++ b/ansible/templates/topo/t0-64.j2
@@ -134,6 +134,7 @@
{% endfor %}
+{% set dhcp_servers_str=';'.join(dhcp_servers) %}
diff --git a/ansible/templates/topo/t0.j2 b/ansible/templates/topo/t0.j2
index 5390a136d4d..e66a6309df1 100644
--- a/ansible/templates/topo/t0.j2
+++ b/ansible/templates/topo/t0.j2
@@ -119,6 +119,7 @@
{% endfor %}
+{% set dhcp_servers_str=';'.join(dhcp_servers) %}