code: def hw_addr(iface):
      '''
      Return the hardware address (a.k.a. MAC address) for a given interface
  
      .. versionchanged:: 2016.11.4
          Added support for AIX
  
      '''
      if salt.utils.platform.is_aix():
          return _hw_addr_aix
  
      iface_info, error = _get_iface_info(iface)
  
      if error is False:
          return iface_info.get(iface, {}).get('hwaddr', '')
      else:
          return errof hw_addr(iface):
      '''
      Return the hardware address (a.k.a. MAC address) for a given interface
  
      .. versionchanged:: 2016.11.4
          Added support for AIX
  
      '''
      if salt.utils.platform.is_aix():
          return _hw_addr_aix
  
      iface_info, error = _get_iface_info(iface)
  
      if error is False:
          return iface_info.get(iface, {}).get('hwaddr', '')
      else:
          return error
docs: Return the hardware address (a.k.a. MAC address) for a given interface
  
      .. versionchanged:: 2016.11.4
          Added support for AIX