Skip to content

Commit

Permalink
Update pfsense_dhcp_static.py (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarodrigues committed Jan 9, 2024
1 parent a605708 commit c715a2f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/modules/pfsense_dhcp_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@
numberoptions:
description: The number options
type: str
arp_table_static_entry:
description: Create an ARP Table Static Entry for this MAC & IP Address pair
type: bool
required: false
default: false
state:
description: State in which to leave the configuration
default: present
Expand Down Expand Up @@ -189,6 +194,7 @@
filename64arm=dict(type='str'),
uefihttpboot=dict(type='str'),
numberoptions=dict(type='str'),
arp_table_static_entry=dict(default=False, type='bool'),
state=dict(type='str', default='present', choices=['present', 'absent']),
)

Expand Down Expand Up @@ -268,6 +274,7 @@ def _params_to_obj(self):
self._get_ansible_param(obj, option)
# Defaulted options
self._get_ansible_param(obj, 'ddnsdomainkeyalgorithm', force_value='hmac-md5', force=True)
self._get_ansible_param_bool(obj, "arp_table_static_entry", value="")

return obj

Expand Down

0 comments on commit c715a2f

Please sign in to comment.