Validate MAC

With the validate func in 01eb5f5.
Merge pull request #7816 from holmboe/virt-mac-valid

Validate MAC in virt.py