We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55eb1ec commit df2c0baCopy full SHA for df2c0ba
bin/v-update-sys-ip
@@ -102,7 +102,7 @@ for ip in $ip_list; do
102
if [ ! -e "$VESTA/data/ips/$ip" ]; then
103
interface=$(/sbin/ip addr |grep $ip |awk '{print $NF}')
104
interface=$(echo $interface |cut -f 1 -d :)
105
- netmask=$(/sbin/ip addr |grep $ip |awk '{print $2}' |cut -f 2 -d /)
+ netmask=$(/sbin/ip addr |grep $ip |cut -f 2 -d / |cut -f 1 -d \ )
106
netmask=$(convert_cidr $netmask)
107
$BIN/v-add-sys-ip $ip $netmask $interface
108
fi
0 commit comments