[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Fix interface_name() after change of definition for the vlan field.



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.