Fix 3 issues:
1. If VF is enabled for SR-IOV, the NIC name changed from 'hn0' to 'mlx0'
2. fix the issue: mount cd failed if cloud-init was installed a clean FreeBSD which does not have /mnt/cdrom/secure folder
3. ifdown and ifup are Linux commands, should be replaced by ifconfig down and ifconfig up