2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-11 08:15:24 +00:00

Limit TRYNIC to only one NIC in ubuntu deployment

This commit is contained in:
Jarrod Johnson 2023-03-14 15:36:24 -04:00
parent 0cc588f8e9
commit 8dc3dfd20c

View File

@ -24,7 +24,7 @@ if [ -e /dev/disk/by-label/CNFLNT_IDNT ]; then
autoconfigmethod=${autoconfigmethod#ipv4_method: }
. /scripts/functions
if [ "$autoconfigmethod" = "static" ]; then
TRYNIC=$(ip link|grep LOWER_UP|awk '{print $2}'|sed -e s/:$//)
TRYNIC=$(ip link|grep -v LOOPBACK|grep LOWER_UP|head -n 1|awk '{print $2}'|sed -e s/:$//)
MYIP=$(grep ^ipv4_address: $tcfg | awk '{print $2}'|sed -e s'!/.*!!')
MYGW=$(grep ^ipv4_gateway: $tcfg | awk '{print $2}')
MYNM=$(grep ^ipv4_netmask: $tcfg | awk '{print $2}')