modprobe.py:
authorMarc Fiuczynski <mef@cs.princeton.edu>
Thu, 13 Nov 2008 22:49:47 +0000 (22:49 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Thu, 13 Nov 2008 22:49:47 +0000 (22:49 +0000)
This new python module implements a class to parse /etc/modprobe.conf
and change/update/add aliases and options.  This is generally needed
to support the NodeNetworkSetting for "DRIVER".  For now I am
leveraging this to add NIC bonding.

net.py:
Added InitInterfaces() which was originally based on the code found in
the BootManager/source/steps/WriteNetworkConfig.py.  My original
motivation was to support "ALIAS" setup dynamically so that one could
assign a slice a separate IP address without needing to reboot the
node.

Added support to more generally handle "CFGOPTIONS", which are the
name=value pairs that are supposed to be dumped into a
/etc/sysconfig/network-scripts/ifcfg-$dev file.

Added support for "DRIVER".  This code calls the modprobe
functionality mentioned above.

Added support to let aliases be associated by "IFNAME" rather than
just by "HWADDR".  E.g., it is possible to associate an alias with
eth0 rather than having to figure out its explicitl macaddr.

Added suport to add, change, remove
/etc/sysconfig/network-scripts/ifcfg-$dev files and then appropriately
call ifdown and ifup.


No differences found