WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [XEND] Save model attribute for HVM VIFs

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEND] Save model attribute for HVM VIFs
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 23 Jan 2007 12:05:10 -0800
Delivery-date: Tue, 23 Jan 2007 12:05:31 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEND] Save model attribute for HVM VIFs, Xen patchbot-unstable <=