mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
bitkeeper revision 1.1108.35.6 (41091d99KjjPC1MDTpjZgbI8NuFnog)
Fix mac formatting.
This commit is contained in:
1 parent
10040e30aa
commit
48434773af
1 file changed
+1
-1
@@ -164,7 +164,7 @@ class NetDev(controller.Dev):
|
||||
def get_mac(self):
|
||||
"""Get the MAC address as a string.
|
||||
"""
|
||||
return ':'.join(map(lambda x: "%x" % x, self.mac))
|
||||
return ':'.join(map(lambda x: "%02x" % x, self.mac))
|
||||
|
||||
def vifctl_params(self, vmname=None):
|
||||
dom = self.controller.dom
|
||||
|
||||