Update IP and MAC fields in adapt_from_template to avoid false-positive mantory field errors. issue #6039