Ignore:
Timestamp:
Jan 3, 2010, 3:38:13 PM (15 years ago)
Author:
broder
Message:

For simplicity, and because we've never used it, tear the IPv6
"support" out of vif-invirtroute.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-xen-config/vif-invirtroute

    r2859 r2860  
    11#!/bin/bash
    2 
    3 
    4 
    5 
    62
    73#============================================================================
     
    2319# ip      list of IP networks for the vif, space-separated (default given in
    2420#         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#
    2722# This script will set up proxy arp  for any ip addresses that are being routed
    2823# type read to determine if the device is ioemu
     
    4944    offline)
    5045        do_without_error ifdown ${vif}
    51         if [ -f /var/run/radvd/radvd.pid.${vif} ] ; then
    52             do_without_error kill `cat /var/run/radvd/radvd.pid.${vif}`
    53             fi
    5446        ipcmd='del'
    5547        cmdprefix='do_without_error'
     
    5749esac
    5850
    59 v6prefix=${v6prefix:-}
    60 v6prefix=$(xenstore_read_default "$XENBUS_PATH/v6prefix" "$v6prefix")
    6151vif_type=$(xenstore_read_default "$XENBUS_PATH/type" "viffront")
    6252if [  ${vif_type} != "ioemu"  -o  x${qemu_online} = xyes ] ; then
     
    7161        done
    7262    fi
    73 
    74     if [ x${v6prefix} != x ] ; then
    75         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 ] ; then
    78             radvd  -u radvd -C /var/run/radvd.conf.${vif} -p /var/run/radvd/radvd.pid.${vif}
    79         fi
    80         ${cmdprefix} ip -6 route ${ipcmd} ${v6prefix} dev ${dev}
    81     fi
    8263fi
    8364
Note: See TracChangeset for help on using the changeset viewer.