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)
Sun, Nov 17, 1:56 AM
Unknown Object (File)
Feb 15 2024, 12:55 PM
Unknown Object (File)
Dec 19 2023, 3:12 PM
Unknown Object (File)
Dec 12 2023, 9:40 PM
Unknown Object (File)
Sep 12 2023, 2:26 AM
Unknown Object (File)
Aug 31 2023, 6:17 PM
Unknown Object (File)
Aug 15 2023, 7:44 AM
Unknown Object (File)
Aug 14 2023, 11:34 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