Revision 8ba80517 vif-custom

b/vif-custom
18 18
INTERFACE=$dev
19 19
INSTANCE=$domname
20 20

  
21
GANETI_INSTANCE_NAME=$INSTANCE
22 21
get_info
23 22

  
24 23
try clear_routed_setup_ipv4
......
28 27
try clear_nfdhcpd
29 28

  
30 29
if [ "$MODE" = "routed" ]; then
31
  TABLE=$LINK
32 30
  ip link set $INTERFACE up
33 31
  success
34
  INDEV=$INTERFACE
35 32
elif [ "$MODE" = "bridged" ]; then
36 33
  ip link set $INTERFACE up
37 34
  BRIDGE=$(xenstore_read_default "$XENBUS_PATH/bridge" "$LINK")
38 35
  brctl addif $BRIDGE $INTERFACE
39 36
  success
40
  INDEV=$BRIDGE
41 37
fi
42 38

  
43 39
for tag in $NETWORK_TAGS; do

Also available in: Unified diff