def _get_baremetal_switches(self, port):
all_switches = set()<EOL>active_switches = set()<EOL>all_link_info = port[bc.portbindings.PROFILE]['<STR_LIT>']<EOL>for link_info in all_link_info:<EOL><INDENT>switch_info = self._get_baremetal_switch_info(link_info)<EOL>if not switch_info:<EOL><INDENT>continue<EOL><DEDENT>switch_ip = switch_info['<STR_LIT>']<EOL>if not self._switch_defined(switch_ip):<EOL><INDENT>continue<EOL><DEDENT>all_switches.add(switch_ip)<EOL>if self.is_switch_active(switch_ip):<EOL><INDENT>active_switches.add(switch_ip)<EOL><DEDENT><DEDENT>return list(all_switches), list(active_switches)<EOL>
Get switch ip addresses from baremetal transaction.

        This method is used to extract switch information
        from the transaction where VNIC_TYPE is baremetal.

        :param port: Received port transaction
        :returns: list of all switches
        :returns: list of only switches which are active