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] netif.py, blkif.py:

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] netif.py, blkif.py:
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Fri, 17 Jun 2005 15:30:49 +0000
Delivery-date: Sat, 18 Jun 2005 01:02:24 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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 Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1713.1.20, 2005/06/17 16:30:49+01:00, cl349@xxxxxxxxxxxxxxxxxxxx

        netif.py, blkif.py:
          Add exportToDB functions to save evtchn port.
        Signed-off-by: Mike Wray <mike.wray@xxxxxx>
        Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>



 blkif.py |    7 +++++++
 netif.py |    8 ++++++--
 2 files changed, 13 insertions(+), 2 deletions(-)


diff -Nru a/tools/python/xen/xend/server/blkif.py 
b/tools/python/xen/xend/server/blkif.py
--- a/tools/python/xen/xend/server/blkif.py     2005-06-17 21:03:31 -04:00
+++ b/tools/python/xen/xend/server/blkif.py     2005-06-17 21:03:31 -04:00
@@ -193,6 +193,13 @@
         self.backendId = 0
         self.configure(self.config, recreate=recreate)
 
+    def exportToDB(self, save=False):
+        Dev.exportToDB(self, save=save)
+        backend = self.getBackend()
+        if backend and backend.evtchn:
+            db = self.db.addChild("evtchn")
+            backend.evtchn.exportToDB(db, save=save)
+
     def init(self, recreate=False, reboot=False):
         self.frontendDomain = self.getDomain()
         self.frontendChannel = self.getChannel()
diff -Nru a/tools/python/xen/xend/server/netif.py 
b/tools/python/xen/xend/server/netif.py
--- a/tools/python/xen/xend/server/netif.py     2005-06-17 21:03:31 -04:00
+++ b/tools/python/xen/xend/server/netif.py     2005-06-17 21:03:31 -04:00
@@ -66,11 +66,9 @@
         DBVar('be_mac',  ty='mac'),
         DBVar('bridge',  ty='str'),
         DBVar('script',  ty='str'),
-        #DBVar('ipaddr'),
         DBVar('credit',  ty='int'),
         DBVar('period',  ty='int'),
         DBVar('vifname', ty='str'),
-        DBVar('evtchn'),                #todo: export fields (renamed)
         ]
 
     def __init__(self, controller, id, config, recreate=False):
@@ -91,6 +89,12 @@
         self.ipaddr = None
         self.vifname = None
         self.configure(self.config, recreate=recreate)
+
+    def exportToDB(self, save=False):
+        Dev.exportToDB(self, save=save)
+        if self.evtchn:
+            db = self.db.addChild("evtchn")
+            self.evtchn.exportToDB(db, save=save)
 
     def init(self, recreate=False, reboot=False):
         self.destroyed = False

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] netif.py, blkif.py:, BitKeeper Bot <=