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:
@@ -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" ];
|
||||
|
Reference in New Issue
Block a user