@classmethod
def existing_dhcp_networks(cls, conf):
 confs_dir = cls.get_confs_dir(conf)
 networks = []
 try:
  for c in os.listdir(confs_dir):
   c = c.replace(cfg.CONF.test_namespace_suffix, '')
   if uuidutils.is_uuid_like(c):
    networks.append(c)
 except OSError:
  pass
 return networks

@ classmethod def existing_dhcp_networks ( cls , conf ) : confs_dir = cls . get_confs_dir ( conf ) networks = [ ] try : for c in os . listdir ( confs_dir ) : c = c . replace ( cfg . CONF . test_namespace_suffix , '' ) if uuidutils . is_uuid_like ( c ) : networks . append ( c ) except OSError : pass return networks
return a list of existing networks ids that we have configs for .