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)
commit4035f3528ab1fe33370186cd37ee12f37c068101
treeea39f0553b0509f5230ae38d22d8a0b8129e4016
parent0f609177db5b548968303da482d7c5f98a1c4495
modprobe.py:
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.
modprobe.py [new file with mode: 0644]
net.py