Typo in IP address generation
Move MAC code into its own function
Update QA checks for commiting code to refpolicy