direct-io.hg
changeset 8814:d1596fc2cbaa
Rather than require config changes if you aren't using eth0, use the
default network device available no matter the name. It can still
be configured if you want a specific network device.
Patch by Bill Nottingham <notting@redhat.com>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
default network device available no matter the name. It can still
be configured if you want a specific network device.
Patch by Bill Nottingham <notting@redhat.com>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
author | emellor@leeni.uk.xensource.com |
---|---|
date | Fri Feb 10 02:03:24 2006 +0100 (2006-02-10) |
parents | 605672867c0f |
children | e2755215a1e5 |
files | tools/examples/network-bridge tools/examples/xend-config.sxp |
line diff
1.1 --- a/tools/examples/network-bridge Fri Feb 10 00:16:53 2006 +0100 1.2 +++ b/tools/examples/network-bridge Fri Feb 10 02:03:24 2006 +0100 1.3 @@ -61,6 +61,7 @@ evalVariables "$@" 1.4 1.5 vifnum=${vifnum:-0} 1.6 bridge=${bridge:-xenbr${vifnum}} 1.7 +netdev=${netdev:-$(ip route list default scope global| awk '{ print $NF }')} 1.8 netdev=${netdev:-eth${vifnum}} 1.9 antispoof=${antispoof:-no} 1.10
2.1 --- a/tools/examples/xend-config.sxp Fri Feb 10 00:16:53 2006 +0100 2.2 +++ b/tools/examples/xend-config.sxp Fri Feb 10 02:03:24 2006 +0100 2.3 @@ -70,8 +70,8 @@ 2.4 # 2.5 # (network-script network-bridge) 2.6 # 2.7 -# Your eth0 is used as the outgoing interface, by default. To use a different 2.8 -# one (e.g. eth1) use 2.9 +# Your default ethernet device is used as the outgoing interface, by default. 2.10 +# To use a different one (e.g. eth1) use 2.11 # 2.12 # (network-script 'network-bridge netdev=eth1') 2.13 #