xen-drbd

changeset 21:fc201b0bc6f9

trunk down before making bridge
author igor
date Sun Feb 17 12:23:52 2008 +0200 (2008-02-17)
parents 1a20c33686ba
children 2ecda36e8d0d
files xen-drbd-install.py xen-scripts-network-xen-drbd
line diff
     1.1 --- a/xen-drbd-install.py	Sun Feb 17 12:02:42 2008 +0200
     1.2 +++ b/xen-drbd-install.py	Sun Feb 17 12:23:52 2008 +0200
     1.3 @@ -311,7 +311,7 @@
     1.4  def make_bridges():
     1.5      ip=get_management_ip()
     1.6      gw=get_default_gateway()
     1.7 -    print "ifconfig %s 0.0.0.0" % (trunk)
     1.8 +    print "ifconfig %s 0.0.0.0 down" % (trunk)
     1.9      
    1.10      # tagged interfaces
    1.11      for bridge in bridges:
     2.1 --- a/xen-scripts-network-xen-drbd	Sun Feb 17 12:02:42 2008 +0200
     2.2 +++ b/xen-scripts-network-xen-drbd	Sun Feb 17 12:23:52 2008 +0200
     2.3 @@ -5,13 +5,13 @@
     2.4  [ -e /etc/default/xen-drbd ] && . /etc/default/xen-drbd
     2.5  
     2.6  case $1 in
     2.7 -		start)
     2.8 -			$XEN_DRBD_PATH/xen-drbd-install.py ${TOPOLOGY_NAME} make-bridges | sh -s
     2.9 -		;;
    2.10 -		stop)
    2.11 -		;;
    2.12 -		*)
    2.13 -			echo $0 'start|stop'
    2.14 -		;;
    2.15 +        start)
    2.16 +            $XEN_DRBD_PATH/xen-drbd-install.py ${TOPOLOGY_NAME} make-bridges | sh -s
    2.17 +        ;;
    2.18 +        stop)
    2.19 +        ;;
    2.20 +        *)
    2.21 +            echo $0 'start|stop'
    2.22 +        ;;
    2.23  esac
    2.24