Properly set IP address bitmask.

This avoids the "Changes in configuration applied" occurring on every
remodel because the incoming full subnet mask doesn't match the bitmask
stored in the database.