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
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
On Wed, 2007-05-02 at 20:05 +0100, Karanbir Singh wrote:
added to testing, rpms for this should be available shortly.
Maybe the patch attached to this bug report can be added as well?: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=237667
This bug brought down networking on some Xen machines after the last Xen update.
-- Daniel
Daniel de Kok wrote:
On Wed, 2007-05-02 at 20:05 +0100, Karanbir Singh wrote:
added to testing, rpms for this should be available shortly.
Maybe the patch attached to this bug report can be added as well?: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=237667
This bug brought down networking on some Xen machines after the last Xen update.
https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=153392
I like that patch, it looks like an obvious fix.
Mike
Mike Fedyk wrote:
Daniel de Kok wrote:
On Wed, 2007-05-02 at 20:05 +0100, Karanbir Singh wrote:
added to testing, rpms for this should be available shortly.
Maybe the patch attached to this bug report can be added as well?: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=237667
This bug brought down networking on some Xen machines after the last Xen update.
https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=153392
I like that patch, it looks like an obvious fix.
I'll look at this in detail in the morning and apply it - looks sane to me.
- KB