[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [XEND] Save model attribute for HVM VIFs
# HG changeset patch # User Alastair Tse <atse@xxxxxxxxxxxxx> # Date 1169487075 0 # Node ID b75af612851c643ba0646c5107fb49da3551dd0a # Parent bffe672121336051b58d0fdfbf2f05cb056d524e [XEND] Save model attribute for HVM VIFs This solves the problem of HVM VIFs forgetting their model config on reboot. http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=867 Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx> --- tools/python/xen/xend/server/netif.py | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff -r bffe67212133 -r b75af612851c tools/python/xen/xend/server/netif.py --- a/tools/python/xen/xend/server/netif.py Mon Jan 22 17:23:53 2007 +0000 +++ b/tools/python/xen/xend/server/netif.py Mon Jan 22 17:31:15 2007 +0000 @@ -147,6 +147,7 @@ class NetifController(DevController): rate = config.get('rate') uuid = config.get('uuid') ipaddr = config.get('ip') + model = config.get('model') devid = self.allocateDeviceID() @@ -176,6 +177,8 @@ class NetifController(DevController): back['rate'] = parseRate(rate) if uuid: back['uuid'] = uuid + if model: + back['model'] = model return (devid, back, front) @@ -185,8 +188,9 @@ class NetifController(DevController): result = DevController.getDeviceConfiguration(self, devid) devinfo = self.readBackend(devid, 'script', 'ip', 'bridge', - 'mac', 'type', 'vifname', 'rate', 'uuid') - (script, ip, bridge, mac, typ, vifname, rate, uuid) = devinfo + 'mac', 'type', 'vifname', 'rate', + 'uuid', 'model') + (script, ip, bridge, mac, typ, vifname, rate, uuid, model) = devinfo if script: network_script_dir = xoptions.network_script_dir + os.sep @@ -205,6 +209,8 @@ class NetifController(DevController): result['rate'] = formatRate(rate) if uuid: result['uuid'] = uuid - + if model: + result['model'] = model + return result _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |