Describe the bug
If you provide the same mapping to pfsense_dhcp_static using capitalized and non-capitalized letters, both mappings will be added. This will cause Kea to fail to start.
Expected behavior
pfsense_dhcp_static should normalize hardware addresses to lower case which is the case used in Kea.
Playbook
Please paste a minimal playbook to reproduce the issue:
- name: Create DHCP static mapping
pfsense_dhcp_static:
name: "test"
macaddr: "aa:aa:aa:aa:aa:aa"
ipaddr: "192.168.1.10"
state: present
- name: Create DHCP static mapping
pfsense_dhcp_static:
name: "test"
macaddr: "AA:AA:AA:AA:AA:AA"
ipaddr: "192.168.1.10"
state: present
Output
Not relevant - OK response.
Environment
- What version of pfsensible.core?
0.7.1
- What version of ansible?
2.20.3
- What version of pfSense?
Community - 2.8.1-RELEASE
Additional context
This seems like something they should fix in Kea and pfsense (warn and ignore instead of error or prevent insertion, respectively), but let's fix pfsensible as well. Happy to do this when I have an hour or two.