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)
Fri, Mar 7, 6:59 PM
Unknown Object (File)
Thu, Feb 27, 7:21 AM
Unknown Object (File)
Jan 15 2025, 12:57 AM
Unknown Object (File)
Dec 20 2024, 9:08 AM
Unknown Object (File)
Oct 6 2024, 2:54 PM
Unknown Object (File)
Oct 6 2024, 2:54 PM
Unknown Object (File)
Oct 6 2024, 12:41 AM
Unknown Object (File)
Oct 4 2024, 9:32 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