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, Jul 10, 10:00 AM
Unknown Object (File)
Sat, Jun 29, 12:25 AM
Unknown Object (File)
Fri, Jun 28, 8:19 PM
Unknown Object (File)
Fri, Jun 28, 10:59 AM
Unknown Object (File)
Jun 21 2024, 11:15 PM
Unknown Object (File)
Jun 16 2024, 7:21 AM
Unknown Object (File)
Jun 2 2024, 12:22 AM
Unknown Object (File)
May 12 2024, 6:05 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