From 7f0afe4d8ef8c639cd7a15f18edeaa813e158d46 Mon Sep 17 00:00:00 2001 From: emeygret Date: Wed, 11 Oct 2017 08:55:02 +0200 Subject: [PATCH] Add multiple fixed_address for one host for host(like laptop) whose have a fixed address on different subnet. --- dhcpd/files/dhcpd.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dhcpd/files/dhcpd.conf b/dhcpd/files/dhcpd.conf index 4c5e672..18af309 100644 --- a/dhcpd/files/dhcpd.conf +++ b/dhcpd/files/dhcpd.conf @@ -241,7 +241,11 @@ host {{ host }} { hardware {{ config.hardware }}; {%- endif %} {%- if config.has_key('fixed_address') %} + {%- if config.fixed_address|is_list %} + fixed-address {{ config.fixed_address|join(',') }}; + {%- else %} fixed-address {{ config.fixed_address }}; + {%- endif %} {%- endif %} {%- if config.has_key('filename') %} filename "{{ config.filename }}";