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

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2007-01-28 15:55:55 +00:00
1 parent e32e2f1314
commit f3ca404628
1 file changed
+1 -1
+1 -1
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.