code: def get_all_run_phy_intf():
      
      intf_list = []
      base_dir = '/sys/class/net'
      dir_exist = os.path.exists(base_dir)
      if not dir_exist:
          LOG.error("Unable to get interface list :Base dir %s does not "
                    "exist", base_dir)
          return intf_list
      dir_cont = os.listdir(base_dir)
      for subdir in dir_cont:
          dev_dir = base_dir + '/' + subdir + '/' + 'device'
          dev_exist = os.path.exists(dev_dir)
          if dev_exist:
              oper_state = is_intf_up(subdir)
              if oper_state is True:
                      intf_list.append(subdir)
          else:
              LOG.info("Dev dir %s does not exist, not physical intf",
                       dev_dir)
      return intf_list
docs: Retrieve all physical interfaces that are operationally up.