From b0a8c3244e267eeed680a8d97ddb6176671dc030 Mon Sep 17 00:00:00 2001 From: liyuenan Date: Tue, 14 Mar 2017 15:55:08 +0800 Subject: Support bond created JIRA: - You can add bond according to deploy/conf/network_cfg.yaml. Change-Id: I70f2f03581cf763dbaf7a8a47bdbd46b66620fcb Signed-off-by: liyuenan (cherry picked from commit 2932812260b57e7f67cef655ee2e043bf66b4887) --- .../adapters/cobbler/snippets/preseed_post_install_network_config | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'deploy/adapters/cobbler/snippets/preseed_post_install_network_config') 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") -- cgit 1.2.3-korg