def _get_host_switches(self, host_id):
all_switches = set()<EOL>active_switches = set()<EOL>try:<EOL><INDENT>host_list = nxos_db.get_host_mappings(host_id)<EOL>for mapping in host_list:<EOL><INDENT>all_switches.add(mapping.switch_ip)<EOL>if self.is_switch_active(mapping.switch_ip):<EOL><INDENT>active_switches.add(mapping.switch_ip)<EOL><DEDENT><DEDENT><DEDENT>except excep.NexusHostMappingNotFound:<EOL><INDENT>pass<EOL><DEDENT>return list(all_switches), list(active_switches)<EOL>
Get switch IPs from configured host mapping.

        This method is used to extract switch information
        from transactions where VNIC_TYPE is normal.
        Information is extracted from ini file which
        is stored in _nexus_switches.

        :param host_id: host_name from transaction
        :returns: list of all switches
        :returns: list of only switches which are active