def update_host_mapping(host_id, interface, nexus_ip, new_ch_grp):
LOG.debug("<STR_LIT>")<EOL>session = bc.get_writer_session()<EOL>mapping = _lookup_one_host_mapping(<EOL>session=session,<EOL>host_id=host_id,<EOL>if_id=interface,<EOL>switch_ip=nexus_ip)<EOL>mapping.ch_grp = new_ch_grp<EOL>session.merge(mapping)<EOL>session.flush()<EOL>return mapping<EOL>
Change channel_group in host/interface mapping data base.