Revision cae36f02

b/fix-net
31 31
      uplink=$(ip route list table $LINK | grep "default via" | awk '{print $5}')
32 32
      uplink6=$(ip -6 route list table $LINK | grep "default via" | awk '{print $5}')
33 33
      eui64=$($MAC2EUI64 $MAC $SUBNET6 2>/dev/null)
34
      if [ "$GANETI_INSTANCE_PRIMARY" = "$host.$domain" ]; then
34
      if [ "$GANETI_INSTANCE_OLD_PRIMARY" == "$host.$domain" ]; then
35 35
        # This runs on the source node
36 36
        hooks-log $0 "ip -6 neigh del proxy $eui64 dev $uplink6"
37 37
        ip -6 neigh del proxy $eui64 dev $uplink6 >/dev/null 2>&1
38
      else
38
      elif [ "$GANETI_INSTANCE_NEW_PRIMARY" == "$host.$domain" ]; then
39 39
        # This runs on the target node
40 40
        # Send GARP from host to upstream router to speed up mac change for the VMs IP
41 41
        hooks-log $0 "arping  -c3 -I $uplink -U $IP"

Also available in: Unified diff