def _parse_cisco_mac_address(cisco_hardware_addr):
 cisco_hardware_addr = cisco_hardware_addr.replace('.', '')
 blocks = [cisco_hardware_addr[x:(x + 2)] for x in range(0, len(cisco_hardware_addr), 2)]
 return ':'.join(blocks).upper()

def _parse_cisco_mac_address ( cisco_hardware_addr ) : cisco_hardware_addr = cisco_hardware_addr . replace ( '.' , '' ) blocks = [ cisco_hardware_addr [ x : ( x + 2 ) ] for x in range ( 0 , len ( cisco_hardware_addr ) , 2 ) ] return ':' . join ( blocks ) . upper ( )
parse a cisco formatted hw address to normal mac .