2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-09 21:10:15 +00:00

Properly reset nic extra params

The global variables were not reset for bonds.
Therefore, the nic extra params from the first bond interface were used if the second one had no nic extra params.
This commit is contained in:
Markus Hilger
2020-05-12 13:17:48 +02:00
parent 29f5a7e3a0
commit 598a75fb86

View File

@@ -289,6 +289,10 @@ function load_kmod {
#
#################################################################
function query_extra_params {
# reset global variables
unset array_nic_params
unset array_extra_param_names
unset array_extra_param_values
nic=$1
if [ -z "$nic" ]; then
@@ -479,9 +483,6 @@ function create_persistent_ifcfg {
local _netmask=""
local _mtu=""
local inattrs=""
unset array_nic_params
unset array_extra_param_names
unset array_extra_param_values
# parser input arguments
while [ -n "$1" ];