def _get_host_connections(self, host_id,<EOL>only_active_switch=False):
host_found = False<EOL>host_connections = []<EOL>try:<EOL><INDENT>host_ifs = nxos_db.get_host_mappings(host_id)<EOL><DEDENT>except excep.NexusHostMappingNotFound:<EOL><INDENT>host_ifs = []<EOL><DEDENT>for ifs in host_ifs:<EOL><INDENT>host_found = True<EOL>if (only_active_switch and<EOL>not self.is_switch_active(ifs.switch_ip)):<EOL><INDENT>continue<EOL><DEDENT>intf_type, port = nexus_help.split_interface_name(<EOL>ifs.if_id, ifs.ch_grp)<EOL>host_connections.append((<EOL>ifs.switch_ip, intf_type, port,<EOL>const.NOT_NATIVE, ifs.ch_grp))<EOL><DEDENT>if not host_found:<EOL><INDENT>LOG.warning(HOST_NOT_FOUND, host_id)<EOL><DEDENT>return host_connections<EOL>
Get switch IPs and interfaces from config host mapping.

        This method is used to extract switch/interface
        information from ini files when VNIC_TYPE is
        normal.  The ini files contain host to interface
        mappings.

        :param host_id: Host name from transaction
        :param only_active_switch: Indicator for selecting only
                   connections for switches that are active
        :returns: list of switch_ip, intf_type, port_id, is_native