parameters: (iface)
docstring: Get the interface type of iface.
  
      Types supported: nic, bonding, bridge, vlan. If the type
      can't be verified, 'unknown' is returned.
  
      Args:
          iface (str): the interface name.
  
      Returns:
          str: the interface type.
docstring_summary: Get the interface type of iface.
docstring_tokens: Get the interface type of iface .
function: def get_interface_type(iface):
      """Get the interface type of iface.
  
      Types supported: nic, bonding, bridge, vlan. If the type
      can't be verified, 'unknown' is returned.
  
      Args:
          iface (str): the interface name.
  
      Returns:
          str: the interface type.
  
      """
      try:
          if is_nic(iface):
              return 'nic'
          if is_bonding(iface):
              return 'bonding'
          if is_bridge(iface):
              return 'bridge'
          if is_vlan(iface):
              return 'vlan'
          return 'unknown'
      except IOError:
          return 'unknown'
function_tokens: def get_interface_type ( iface ) : try : if is_nic ( iface ) : return 'nic' if is_bonding ( iface ) : return 'bonding' if is_bridge ( iface ) : return 'bridge' if is_vlan ( iface ) : return 'vlan' return 'unknown' except IOError : return 'unknown'