aboutsummaryrefslogtreecommitdiffstats
path: root/tools/examples/xmexample2
diff options
context:
space:
mode:
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>2005-12-13 00:15:53 +0000
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>2005-12-13 00:15:53 +0000
commitbc8ed50e6c00293264a8f3a312edc69767efe46d (patch)
tree56352379ced7db65a7700a09b02f6b4419cdef73 /tools/examples/xmexample2
parent296749cb10305ccb132b4cc5d5bdee9038362e83 (diff)
downloadxen-bc8ed50e6c00293264a8f3a312edc69767efe46d.tar.gz
xen-bc8ed50e6c00293264a8f3a312edc69767efe46d.tar.bz2
xen-bc8ed50e6c00293264a8f3a312edc69767efe46d.zip
Deprecate the nics option from the xm create configuration. Instead, we use the
entries in vif to guide the configuration. This is much less confusing. Closes bug #440. Change the example configuration files to match. Also change them to use the XenSource OUI in the MAC addresses. Also change xm-test to match. Remove the obsolete ipaddr configuration entry, and the backend_mac vif config option. Remove the preprocess_vifs function, folding it into the configure_vifs function, and creating a simple comma_sep_kv_to_dict helper. Remove the configure_vfr method, as it is unused. Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/examples/xmexample2')
-rw-r--r--tools/examples/xmexample218
1 files changed, 13 insertions, 5 deletions
diff --git a/tools/examples/xmexample2 b/tools/examples/xmexample2
index 6a562a9609..ff39c4e7d9 100644
--- a/tools/examples/xmexample2
+++ b/tools/examples/xmexample2
@@ -64,12 +64,20 @@ vcpus = 4 # make your domain a 4-way
#----------------------------------------------------------------------------
# Define network interfaces.
-# Number of network interfaces. Default is 1.
-#nics=1
+# By default, no network interfaces are configured. You may have one created
+# with sensible defaults using an empty vif clause:
+#
+# vif = [ '' ]
+#
+# or optionally override backend, bridge, ip, mac, script, type, or vifname:
+#
+# vif = [ 'mac=00:16:3e:00:00:11, bridge=xenbr0' ]
+#
+# or more than one interface may be configured:
+#
+# vif = [ '', 'bridge=xenbr1' ]
-# Optionally define mac and/or bridge for the network interfaces.
-# Random MACs are assigned if not given.
-#vif = [ 'mac=aa:00:00:00:00:11, bridge=xenbr0' ]
+vif = [ '' ]
#----------------------------------------------------------------------------
# Define the disk devices you want the domain to have access to, and