@classmethod<EOL><INDENT>def recover_devices(cls):<DEDENT>
if "<STR_LIT>" in globals():<EOL><INDENT>return<EOL><DEDENT>global _devices<EOL>confs_dir = os.path.abspath(os.path.normpath(cfg.CONF.dhcp_confs))<EOL>for netid in os.listdir(confs_dir):<EOL><INDENT>conf_dir = os.path.join(confs_dir, netid)<EOL>intf_filename = os.path.join(conf_dir, '<STR_LIT>')<EOL>try:<EOL><INDENT>with open(intf_filename, '<STR_LIT:r>') as f:<EOL><INDENT>ifname = f.read()<EOL><DEDENT>_devices[netid] = ifname<EOL><DEDENT>except IOError:<EOL><INDENT>LOG.error('<STR_LIT>',<EOL>intf_filename)<EOL><DEDENT>LOG.debug("<STR_LIT>",<EOL>ifname, netid)<EOL><DEDENT>
Track devices.

        Creates global dict to track device names across driver invocations
        and populates based on current devices configured on the system.