Revision 5702e5e8

b/clear-proxy-ndp
1
#!/bin/bash
2

  
3
MAC2EUI64=/usr/bin/mac2eui64
4

  
5

  
6

  
7
host=$(hostname)
8
domain=$(hostname -d)
9

  
10

  
11
if [ "$GANETI_INSTANCE_PRIMARY" != "$host.$domain" ]; then
12
  exit 0
13
fi
14

  
15
source /etc/default/snf-network
16

  
17
source $CONF
18

  
19
NETWORK=$GANETI_INSTANCE_NIC0_NETWORK
20
MODE=$GANETI_INSTANCE_NIC0_MODE
21
LINK=$GANETI_INSTANCE_NIC0_LINK
22
MAC=$GANETI_INSTANCE_NIC0_MAC
23

  
24
source $SHAREDDIR/networks/$NETWORK
25

  
26
if [ "$MODE" == "routed" ] ; then
27
    EUI64=$($MAC2EUI64 $MAC $SUBNET6 2>/dev/null)
28

  
29
    ip -6 neigh del proxy $EUI64 dev $GATEWAY6 >/dev/null 2>&1
30
fi
31

  

Also available in: Unified diff