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] Fix interface_name() after change of defi

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix interface_name() after change of definition for the vlan field.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 30 Jan 2007 06:00:42 -0800
Delivery-date: Tue, 30 Jan 2007 06:02:57 -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 Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1169999755 0
# Node ID 4651595d95028b1eb5c8361214de15df0cf15428
# Parent  f405287736291ac8e0fa2e88fb6bbd329c288bfb
Fix interface_name() after change of definition for the vlan field.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendPIF.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r f40528773629 -r 4651595d9502 tools/python/xen/xend/XendPIF.py
--- a/tools/python/xen/xend/XendPIF.py  Sun Jan 28 13:50:56 2007 +0000
+++ b/tools/python/xen/xend/XendPIF.py  Sun Jan 28 15:55:55 2007 +0000
@@ -175,7 +175,7 @@ class XendPIF:
 
 
     def interface_name(self):
-        if self.vlan:
+        if self.vlan != -1:
             return '%s.%d' % (self.device, self.vlan)
         else:
             return self.device

_______________________________________________
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] Fix interface_name() after change of definition for the vlan field., Xen patchbot-unstable <=