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