summaryrefslogtreecommitdiff
path: root/roles/colo-router/templates/router-dnsmasq.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/colo-router/templates/router-dnsmasq.j2')
-rw-r--r--roles/colo-router/templates/router-dnsmasq.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/colo-router/templates/router-dnsmasq.j2 b/roles/colo-router/templates/router-dnsmasq.j2
index 4ba31b9b..b879507d 100644
--- a/roles/colo-router/templates/router-dnsmasq.j2
+++ b/roles/colo-router/templates/router-dnsmasq.j2
@@ -18,7 +18,11 @@ dhcp-range=em1.33,10.33.0.100,10.33.3.250,255.255.0.0,24h
# rack1 hosts
{% for host in r1_hosts %}
+{% if host.tag is defined %}
+dhcp-host={{host.mac}},set:{{host.tag}},{{host.name}},{{host.ip}}
+{% else %}
dhcp-host={{host.mac}},set:rack1,{{host.name}},{{host.ip}}
+{% endif %}
{% endfor %}
# rack2 hosts