EasyG0ing1 / Migration

Migration is a tool to assist with migrating your OPNsense DHCP static mappings over to the new Kea DHCP server that comes with version 24 of OPNsense.
43 stars 1 forks source link

Error when DHCP has no Static Mappings #5

Closed cmacnichol closed 3 months ago

cmacnichol commented 4 months ago

Windows Binary 2.1.4

If you have a Subnet with DHCP Enabled but no Static mapping, the tool will error out on the following entry in the config file.

<staticmap/>

This will result in the static mapping error with these details.

   Mac:         NONE
   CID:         NONE
   Hostname:    NONE
   Description: NONE

Removing the line from the file corrects the issue and allows the tool to process the source config file.

EasyG0ing1 commented 4 months ago

@cmacnichol I think you intended on providing the line in the config file that caused the error, but didn't paste it into your post.

cmacnichol commented 4 months ago

@cmacnichol I think you intended on providing the line in the config file that caused the error, but didn't paste it into your post.

Looks like Github was trying to be helpful and formatted it away. Putting it in code brackets fixed it.

EasyG0ing1 commented 4 months ago

@cmacnichol

Nothing better than when they try to help ;-)

Try this with your config file and tell me what happens.

Windows-Migrate.zip

EasyG0ing1 commented 3 months ago

Fixed with Version 2.2.0