aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/cobbler/snippets/kickstart_post_install_network_config
diff options
context:
space:
mode:
authorliyuenan <liyuenan@huawei.com>2017-03-14 15:55:08 +0800
committerliyuenan <liyuenan@huawei.com>2017-03-14 15:55:08 +0800
commit2932812260b57e7f67cef655ee2e043bf66b4887 (patch)
tree8993dc1cb40a2fc36db9cac1c883370731770a69 /deploy/adapters/cobbler/snippets/kickstart_post_install_network_config
parent267fd18d744ab641338eb144e0b4cb768f323cac (diff)
Support bond created
JIRA: - You can add bond according to deploy/conf/network_cfg.yaml. Change-Id: I70f2f03581cf763dbaf7a8a47bdbd46b66620fcb Signed-off-by: liyuenan <liyuenan@huawei.com>
Diffstat (limited to 'deploy/adapters/cobbler/snippets/kickstart_post_install_network_config')
-rw-r--r--deploy/adapters/cobbler/snippets/kickstart_post_install_network_config7
1 files changed, 5 insertions, 2 deletions
diff --git a/deploy/adapters/cobbler/snippets/kickstart_post_install_network_config b/deploy/adapters/cobbler/snippets/kickstart_post_install_network_config
index 2c089f92..1a5a7f66 100644
--- a/deploy/adapters/cobbler/snippets/kickstart_post_install_network_config
+++ b/deploy/adapters/cobbler/snippets/kickstart_post_install_network_config
@@ -426,9 +426,12 @@ declare -A used_logical_interfaces
used_logical_interfaces[$iname]=$iname
- #if $iface_type in ("slave","bond_slave","bridge_slave","bonded_bridge_slave")
+ #if $iface_type in ("slave","bridge_slave","bonded_bridge_slave")
#set $static = 1
#end if
+ #if $ip == ""
+ #set $static = ""
+ #end if
echo "DEVICE=$iname" > $devfile
echo "ONBOOT=yes" >> $devfile
@@ -514,7 +517,7 @@ echo "GATEWAY=$if_gateway" >> $devfile
echo "NETMASK=$netmask" >> $devfile
#end if
#else
-echo "BOOTPROTO=dhcp" >> $devfile
+echo "BOOTPROTO=manual" >> $devfile
#if $len($name_servers) > 0
echo "PEERDNS=no" >> $devfile
#end if