Skip to content

Commit

Permalink
feat: add custom option space
Browse files Browse the repository at this point in the history
  • Loading branch information
rgroux committed Oct 4, 2024
1 parent 26bb382 commit 857df58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dhcpd/files/dhcpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@

# Customized dhcp options
{%- for name, data in dhcpd.customized_options.items() %}
{%- if data.type == "space" %}
option space {{ name|replace('_', '-') }};
{%- else %}
option {{ name|replace('_', '-') }} code {{ data.code }} = {{ data.type }};
{%- endif %}
{%- endfor %}

# option definitions common to all supported networks...
Expand Down
6 changes: 6 additions & 0 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,9 @@ dhcpd:
auto_proxy_config:
code: 252
type: string
# set namespace for an ipxe option
ipxe:
type: space
ipxe.no-pxedhcp:
code: 176
type: unsigned integer 8

0 comments on commit 857df58

Please sign in to comment.