- Timestamp:
- Jan 3, 2010, 3:38:13 PM (15 years ago)
- Location:
- trunk/packages/invirt-xen-config
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-xen-config/debian/changelog
r2859 r2860 8 8 code has never been reliable. 9 9 * Don't create iptables rules in vif-invirtroute - they don't do anything. 10 * For simplicity, and because we've never used it, tear the IPv6 11 "support" out of vif-invirtroute. 10 12 11 13 [ Quentin Smith ] 12 14 * Increase dom0's weight to improve IO performance. 13 15 14 -- Evan Broder <broder@mit.edu> Sun, 03 Jan 2010 14: 27:57-060016 -- Evan Broder <broder@mit.edu> Sun, 03 Jan 2010 14:37:34 -0600 15 17 16 18 invirt-xen-config (0.0.26) unstable; urgency=low -
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.