Skip to content

Commit

Permalink
Revert "Set host id as a hexadecimal value"
Browse files Browse the repository at this point in the history
This reverts commit 567525f.
  • Loading branch information
danielvijge committed Jul 21, 2024
1 parent 092e6db commit 659886b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/dhcp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ config host
option dns '1'
option ip '{{ networks.lan.cidr | ansible.utils.ipaddr(hostvars[ap].id) | ansible.utils.ipv4('address')}}'
option name '{{ hostvars[ap].name }}'
option hostid '{{ '%0x' % hostvars[ap].id }}'
option hostid '{{ hostvars[ap].id }}'
option duid '{{ hostvars[ap].duid }}'

{% endfor %}
Expand All @@ -58,7 +58,7 @@ config host
option mac '{{ host.mac }}'
option dns '1'
option ip '{{ networks[host.network | default('lan')].cidr | ansible.utils.ipaddr(host.id) | ansible.utils.ipv4('address')}}'
option hostid '{{ '%0x' % host.id }}'
option hostid '{{ host.id }}'
option duid '{{ host.duid }}'

{% endfor %}
Expand Down

0 comments on commit 659886b

Please sign in to comment.