From 21a144248e6b02272782b77e78e7388ea80b1c5d Mon Sep 17 00:00:00 2001 From: William Wernert Date: Fri, 31 May 2019 16:05:47 -0400 Subject: [PATCH] Fixed further issues in substitution and ipv4/v6 flags --- so-setup-network.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/so-setup-network.sh b/so-setup-network.sh index 8b6aeccc4..f3c083e82 100644 --- a/so-setup-network.sh +++ b/so-setup-network.sh @@ -257,24 +257,24 @@ create_bond_nmcli() { nmcli con add type bond ifname bond0 con-name "bond0" \ bond.options "mode=0" \ 802-3-ethernet.mtu $MTU \ - ipv4.method "ignore" \ - ipv6.method "ignore" \ + ipv4.method "disabled" \ + ipv6.method "disabled" \ connection.autoconnect "yes" \ >> ~/sosetup.log 2>&1 for BNIC in ${BNICS[@]}; do # Strip the quotes from the NIC names - BONDNIC=${awk -F\" | '{print $2}' <<< !BNIC} + BONDNIC="$(echo -e "${BNIC}" | tr -d '"')" # Create the slave interface and assign it to the bond nmcli con add type ethernet ifname $BONDNIC master bond0 \ connection.autoconnect yes \ 802-3-ethernet.mtu $MTU \ - ipv4.method "ignore" \ - ipv6.method "ignore" \ - con-name "bond0-slave-$BNIC" \ + ipv4.method "disabled" \ + ipv6.method "disabled" \ + con-name "bond0-slave-$BONDNIC" \ >> ~/sosetup.log 2>&1 # Bring the slave interface up - nmcli con up bond0-slave-$BNIC >> ~/sosetup.log 2>&1 + nmcli con up bond0-slave-$BONDNIC >> ~/sosetup.log 2>&1 done }