Page MenuHomeFreeBSD

net/cloud-init-azure: fix the issue caused by the hardcode NIC
Needs ReviewPublic

Authored by honzhan_microsoft.com on Jun 16 2017, 6:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 15, 4:14 AM
Unknown Object (File)
Fri, Oct 10, 3:57 AM
Unknown Object (File)
Sep 21 2025, 1:24 PM
Unknown Object (File)
Sep 20 2025, 7:36 PM
Unknown Object (File)
Sep 17 2025, 5:45 AM
Unknown Object (File)
Sep 9 2025, 9:57 AM
Unknown Object (File)
Sep 9 2025, 2:47 AM
Unknown Object (File)
Sep 9 2025, 12:31 AM
Subscribers

Details

Summary

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

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 9929
Build 10364: arc lint + arc unit

Event Timeline

lifanov added inline comments.
net/cloud-init-azure/files/patch-frbsd-azure.txt
494

This needs to be "ifconfig $i down" and "ifconfig $i up".
Interface name comes first.

linimon retitled this revision from fix the issue caused by the hardcode NIC to net/cloud-init-azure: fix the issue caused by the hardcode NIC.Jul 19 2018, 5:24 AM