Changeset 2860 for trunk/packages/invirt-xen-config/vif-invirtroute
- Timestamp:
- Jan 3, 2010, 3:38:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-xen-config/vif-invirtroute
r2859 r2860 1 1 #!/bin/bash 2 3 4 5 6 2 7 3 #============================================================================ … … 23 19 # ip list of IP networks for the vif, space-separated (default given in 24 20 # this script). 25 # V6PREFIX prefix of v6 address to use 26 # Note that the v6 support is kind of broken because there's not really a way to populate the v6 prefix 21 # 27 22 # This script will set up proxy arp for any ip addresses that are being routed 28 23 # type read to determine if the device is ioemu … … 49 44 offline) 50 45 do_without_error ifdown ${vif} 51 if [ -f /var/run/radvd/radvd.pid.${vif} ] ; then52 do_without_error kill `cat /var/run/radvd/radvd.pid.${vif}`53 fi54 46 ipcmd='del' 55 47 cmdprefix='do_without_error' … … 57 49 esac 58 50 59 v6prefix=${v6prefix:-}60 v6prefix=$(xenstore_read_default "$XENBUS_PATH/v6prefix" "$v6prefix")61 51 vif_type=$(xenstore_read_default "$XENBUS_PATH/type" "viffront") 62 52 if [ ${vif_type} != "ioemu" -o x${qemu_online} = xyes ] ; then … … 71 61 done 72 62 fi 73 74 if [ x${v6prefix} != x ] ; then75 sed -e "s/@interface@/${dev}/" -e "s+@prefix@+${v6prefix}+" /etc/xen/radvd.conf.template >/var/run/radvd.conf.${vif}76 ${cmdprefix} ip -6 addr ${ipcmd} fe80::/64 scope link dev ${dev}77 if [ $1 = online ] ; then78 radvd -u radvd -C /var/run/radvd.conf.${vif} -p /var/run/radvd/radvd.pid.${vif}79 fi80 ${cmdprefix} ip -6 route ${ipcmd} ${v6prefix} dev ${dev}81 fi82 63 fi 83 64
Note: See TracChangeset
for help on using the changeset viewer.