aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/cobbler/snippets/preseed_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/preseed_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/preseed_post_install_network_config')
-rw-r--r--deploy/adapters/cobbler/snippets/preseed_post_install_network_config7
1 files changed, 5 insertions, 2 deletions
diff --git a/deploy/adapters/cobbler/snippets/preseed_post_install_network_config b/deploy/adapters/cobbler/snippets/preseed_post_install_network_config
index cb79c556..7d4dcb9d 100644
--- a/deploy/adapters/cobbler/snippets/preseed_post_install_network_config
+++ b/deploy/adapters/cobbler/snippets/preseed_post_install_network_config
@@ -441,15 +441,18 @@ echo "" >> /etc/network/interfaces
used_logical_interface_$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 "auto $iname" >> /etc/network/interfaces
#if $static
echo "iface $iname inet static" >> /etc/network/interfaces
#else
-echo "iface $iname inet dhcp" >> /etc/network/interfaces
+echo "iface $iname inet manual" >> /etc/network/interfaces
#end if
#if $iface_type not in ("master","bond","bridge","bonded_bridge_slave")