Mike Fedyk wrote:
If a centos5 xen dom0 has one ip address, the default route line from "ip route list" has 5 fields.
If the dom0 has more than one ip address, the default route line adds two more fields specifying the source ip address used for that route.
This patch makes sure bridges are created properly in both cases.
Mike Fedyk
--- /etc/xen/scripts/network-bridge.orig 2007-05-02 06:13:52.000000000 -0700 +++ /etc/xen/scripts/network-bridge 2007-05-02 06:14:29.000000000 -0700 @@ -59,7 +59,7 @@ findCommand "$@" evalVariables "$@"
-vifnum=${vifnum:-$(ip route list | awk '/^default / { print $NF }' | sed 's/^[^0-9]*//')} +vifnum=${vifnum:-$(ip route list | awk '/^default / { print $5 }' | sed 's/^[^0-9]*//')} vifnum=${vifnum:-0} bridge=${bridge:-xenbr${vifnum}} netdev=${netdev:-eth${vifnum}}
thanks.
added to testing, rpms for this should be available shortly.
- KB