code: def get_config_profile_for_network(self, net_name):
          
  
          cfgplist = self.config_profile_list()
          cfgname = net_name.partition(':')[2]
  
          cfgtuple = set()
          for cfg_prof in cfgplist:
              if cfg_prof.startswith('defaultNetwork'):
                  cfg_alias = (cfg_prof.split('defaultNetwork')[1].
                               split('Profile')[0])
              elif cfg_prof.endswith('Profile'):
                  cfg_alias = cfg_prof.split('Profile')[0]
              else:
                  cfg_alias = cfg_prof
              cfgtuple.update([(cfg_prof, cfg_alias)])
          cfgp = [a for a, b in cfgtuple if cfgname == b]
          prof = cfgp[0] if cfgp else self.default_cfg_profile
          fwd_mod = self.config_profile_fwding_mode_get(prof)
          return (prof, fwd_mod)
docs: Get the list of profiles.