def _add_mgmt_to_domains(self, conf, mgmts):
for dom_name, dom_spec in conf['<STR_LIT>'].items():<EOL><INDENT>domain_mgmt = [<EOL>nic['<STR_LIT>'] for nic in dom_spec['<STR_LIT>'] if nic['<STR_LIT>'] in mgmts<EOL>].pop()<EOL>dom_spec['<STR_LIT>'] = domain_mgmt<EOL><DEDENT>
Add management network key('mgmt_net') to each domain. Note this
assumes ``conf`` was validated.

Args:
    conf(dict): spec
    mgmts(list): list of management networks names