code: def is_phy_iface(interface):
      
      if interface:
          sys_net = '/sys/class/net'
          if os.path.isdir(sys_net):
              for iface in glob.glob(os.path.join(sys_net, '*')):
                  if '/virtual/' in os.path.realpath(iface):
                      continue
  
                  if interface == os.path.basename(iface):
                      return True
  
      return False
docs: Returns True if interface is not virtual, otherwise False.