xenserver: Rename network devices to match MAC addresses of physical PIFs.
authorBen Pfaff <blp@nicira.com>
Fri, 7 Aug 2009 00:01:53 +0000 (17:01 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 7 Aug 2009 00:01:53 +0000 (17:01 -0700)
commit2bb451b698fa45c4c616ba721bd8fc6d07064bb7
tree5a1db5f5cdad14493d1f1ba593dd2e8a284a7225
parent449776d81d7b03d9b5f552b402c8a619323e8aa2
xenserver: Rename network devices to match MAC addresses of physical PIFs.

XenServer does not rely on Linux to keep the naming of network devices
stable from one boot to the next.  Instead, it requires
interface-reconfigure to ensure that network devices are named such that
they have the MAC address specified for the corresponding physical PIF
in the xapi database.

At one point, we fulfilled this requirement by calling out to the Centos
ifup/ifdown scripts, which rename netdevs as necessary to match the
"HWADDR=" lines in /etc/sysconfig/network-scripts/ifcfg-<devname>.  When
we rewrote interface-reconfigure not to use those scripts, however, we
accidentally dropped that support.  This commit adds back in that renaming.

Bug NIC-20.
xenserver/opt_xensource_libexec_interface-reconfigure