code: def mac_hex_to_ascii(mac_hex, inc_dots):
          '''
          Format a hex MAC string to ASCII
  
          Args:
              mac_hex:    Value from SNMP
              inc_dots:   1 to format as aabb.ccdd.eeff, 0 to format aabbccddeeff
  
          Returns:
              String representation of the mac_hex
          '''
          v = mac_hex[2:]
          ret = ''
          for i in range(0, len(v), 4):
              ret += v[i:i+4]
              if ((inc_dots) & ((i+4) < len(v))):
                  ret += '.'
  
          return ref mac_hex_to_ascii(mac_hex, inc_dots):
          '''
          Format a hex MAC string to ASCII
  
          Args:
              mac_hex:    Value from SNMP
              inc_dots:   1 to format as aabb.ccdd.eeff, 0 to format aabbccddeeff
  
          Returns:
              String representation of the mac_hex
          '''
          v = mac_hex[2:]
          ret = ''
          for i in range(0, len(v), 4):
              ret += v[i:i+4]
              if ((inc_dots) & ((i+4) < len(v))):
                  ret += '.'
  
          return ret
docs: Format a hex MAC string to ASCII
  
          Args:
              mac_hex:    Value from SNMP
              inc_dots:   1 to format as aabb.ccdd.eeff, 0 to format aabbccddeeff
  
          Returns:
              String representation of the mac_hex