Removes hardcoded refrences for ethernet interface

Remove hardcoded refrences for ethernet interfaces from ironic-agent
and sets a dependency on dhcp-all-interfaces to ensure it works for
all interfaces for all other operating systems.

Change-Id: I7ae6d1c5bd9911ef3db45187c0010cf0973badf1
Closes-Bug: #1471802
This commit is contained in:
Om Kumar 2015-07-06 19:09:05 +05:30
parent 7aab6c63c2
commit 870ea5bb5e
2 changed files with 1 additions and 8 deletions

View File

@ -1 +1,2 @@
dhcp-all-interfaces
source-repositories

View File

@ -10,11 +10,3 @@ install-packages -e python-dev git cloud-init
rm -rf /tmp/ironic-python-agent
sudo systemctl disable iptables.service
#configs for additional interfaces
SYSCONFIG_PATH=/etc/sysconfig/network-scripts
for IFACE_NUM in 1 2
do
sudo cp $SYSCONFIG_PATH/ifcfg-eth0 $SYSCONFIG_PATH/ifcfg-eth$IFACE_NUM
sudo sed -i "s/eth0/eth$IFACE_NUM/g" $SYSCONFIG_PATH/ifcfg-eth$IFACE_NUM
done