fix FormatEthAddr
This commit is contained in:
parent
fe8aca7e6e
commit
6784647c86
|
@ -731,12 +731,12 @@ def SetEthernetAddress(s, r, eth_addr, new_eth_addr):
|
|||
|
||||
#-----------------------------------------------------------------------------
|
||||
def FormatEthAddr(a):
|
||||
return "%02X-%02X-%02X-%02X-%02X-%02X" % (ord(a[0]),
|
||||
ord(a[1]),
|
||||
ord(a[2]),
|
||||
ord(a[3]),
|
||||
ord(a[4]),
|
||||
ord(a[5])
|
||||
return "%02X-%02X-%02X-%02X-%02X-%02X" % (a[0],
|
||||
a[1],
|
||||
a[2],
|
||||
a[3],
|
||||
a[4],
|
||||
a[5]
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue