Browse Source

Fixed a bug with mis-configuring vlan-ifaces

Dmitry Yu Okunev 7 years ago
parent
commit
08076d2406
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ipw

+ 1 - 1
ipw

@@ -529,7 +529,7 @@ case "$CMD" in
 					fi
 
 					ip addr flush dev "$FULL_VLAN_NAME"
-					IP_CMDS_VARIABLE="vlan${VLANNAME//[.]/_}_IP"
+					IP_CMDS_VARIABLE="${FULL_VLAN_NAME//[.]/_}_IP"
 					IP_CMDS_VARIABLE="${IP_CMDS_VARIABLE}[@]"
 					for IP_CMD in "${!IP_CMDS_VARIABLE}"; do
 						ip $IP_CMD dev "$FULL_VLAN_NAME"