direct-io.hg

changeset 13678:4651595d9502

Fix interface_name() after change of definition for the vlan field.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Sun Jan 28 15:55:55 2007 +0000 (2007-01-28)
parents f40528773629
children 1e88f0b736b5
files tools/python/xen/xend/XendPIF.py
line diff
     1.1 --- a/tools/python/xen/xend/XendPIF.py	Sun Jan 28 13:50:56 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendPIF.py	Sun Jan 28 15:55:55 2007 +0000
     1.3 @@ -175,7 +175,7 @@ class XendPIF:
     1.4  
     1.5  
     1.6      def interface_name(self):
     1.7 -        if self.vlan:
     1.8 +        if self.vlan != -1:
     1.9              return '%s.%d' % (self.device, self.vlan)
    1.10          else:
    1.11              return self.device