mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Fix interface_name() after change of definition for the vlan field.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
e32e2f1314
commit
f3ca404628
1 file changed
+1
-1
@@ -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
|
||||
|
||||