[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [XEND] Allow arbitrary values for the vif 'type'.
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1167926300 0 # Node ID d03beab5e1adeed3df3a786de32779dc5ea0cafa # Parent 98dadb3df5caed10b182a1e175558b80ef7eee47 [XEND] Allow arbitrary values for the vif 'type'. Signed-off-by: David Edmondson <dme@xxxxxxx> --- tools/python/xen/xend/server/netif.py | 8 ++++++-- tools/python/xen/xm/create.py | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff -r 98dadb3df5ca -r d03beab5e1ad tools/python/xen/xend/server/netif.py --- a/tools/python/xen/xend/server/netif.py Thu Jan 04 15:50:08 2007 +0000 +++ b/tools/python/xen/xend/server/netif.py Thu Jan 04 15:58:20 2007 +0000 @@ -150,16 +150,20 @@ class NetifController(DevController): devid = self.allocateDeviceID() + # The default type is 'netfront'. + if not typ: + typ = 'netfront' + if not mac: mac = randomMAC() back = { 'script' : script, 'mac' : mac, - 'handle' : "%i" % devid } + 'handle' : "%i" % devid, + 'type' : typ } if typ == 'ioemu': front = {} - back['type'] = 'ioemu' else: front = { 'handle' : "%i" % devid, 'mac' : mac } diff -r 98dadb3df5ca -r d03beab5e1ad tools/python/xen/xm/create.py --- a/tools/python/xen/xm/create.py Thu Jan 04 15:50:08 2007 +0000 +++ b/tools/python/xen/xm/create.py Thu Jan 04 15:58:20 2007 +0000 @@ -300,7 +300,7 @@ gopts.var('vif', val="type=TYPE,mac=MAC, fn=append_value, default=[], use="""Add a network interface with the given MAC address and bridge. The vif is configured by calling the given configuration script. - If type is not specified, default is netfront not ioemu device. + If type is not specified, default is netfront. If mac is not specified a random MAC address is used. If not specified then the network backend chooses it's own MAC address. If bridge is not specified the first bridge found is used. _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |