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)
Thu, Dec 11, 9:47 AM
Unknown Object (File)
Wed, Nov 26, 10:46 AM
Unknown Object (File)
Nov 5 2025, 10:32 PM
Unknown Object (File)
Nov 4 2025, 10:31 AM
Unknown Object (File)
Oct 15 2025, 4:14 AM
Unknown Object (File)
Oct 10 2025, 3:57 AM
Unknown Object (File)
Sep 21 2025, 1:24 PM
Unknown Object (File)
Sep 20 2025, 7:36 PM
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