From a723db4f28a7c3e8662305ed4bc67fa24b42d73b Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 27 Oct 2023 13:59:17 +0200 Subject: [PATCH] Fixing network config --- snippets/tpl.001.basics.sh | 1 + snippets/tpl.040.network.sh | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/snippets/tpl.001.basics.sh b/snippets/tpl.001.basics.sh index a22be45..28cc183 100644 --- a/snippets/tpl.001.basics.sh +++ b/snippets/tpl.001.basics.sh @@ -118,6 +118,7 @@ echo " \$base_hostname: $base_hostname" echo " \$system_name: $system_name" echo " \$gateway: $gateway" echo " \$management_interface: ${mgmt_interface}" +echo " \$DEVNAME_ETH0: $DEVNAME_ETH0" echo " \$mac_address_eth0: $mac_address_eth0" echo " \$ip_address_eth0: $ip_address_eth0" echo " \$IP_ADDRESS_ETH0: $IP_ADDRESS_ETH0" diff --git a/snippets/tpl.040.network.sh b/snippets/tpl.040.network.sh index 2f41757..e101b6c 100644 --- a/snippets/tpl.040.network.sh +++ b/snippets/tpl.040.network.sh @@ -70,16 +70,16 @@ create_networkconfig() { mv -v "${ifcfg_file}" "${nm_old_dir}" done - local dev_basename="${mgmt_interface}.nmconnection" + local dev_basename="${DEVNAME_ETH0}.nmconnection" local dev_file="${tmp_nw_script_dir}/${dev_basename}" echo "Generating '${dev_file}' ..." cat <<-EOF >"${dev_file}" [connection] - id=${mgmt_interface} + id=${DEVNAME_ETH0} uuid=${if_uuid} type=ethernet - interface-name=${mgmt_interface} + interface-name=${DEVNAME_ETH0} [ethernet] -- 2.39.5