This simple script allows you to bulk import DHCP reservations to your OPNSense router.
It currently supports .csv files with a very specific format.
- Generate a .csv file with the columns:
macaddripaddrhostnamedescription
- Put your data into said CSV
- Save the file into
data/input_reservations.csv - Run
opnsense-dhcp-import.py - Import generated XML backup
data/output_dhcp_reservations.xmlinto OPNSense (specify DHCP only!) - Cross fingers, and test!
- Actually saving XML
- Other input formats
- JSON
- Other router backups?
- Testing
- OPNSense
- pfSense
- Maybe update OPNSense directly with API??!