def _get_config_switch_interfaces(self, requested_switch_ip):
        """Identify host entries to get interfaces.

        For a given switch, this returns all known configured port
        interfaces.  These configured in the ml2_conf.ini file.

        :param requested_switch_ip: switch_ip
        :returns: list of switch_ip, intf_type, port_id, is_native
        """

        switch_ifs = []
        defined_attributes = [const.USERNAME, const.PASSWORD, const.SSHPORT,
                              'physnet', 'nve_src_intf']
        for switch_ip, attr in self._nexus_switches:
            # if not in clearly defined attribute, it must be a host
            # with it's listed interfaces
            if (switch_ip == requested_switch_ip and
                defined_attributes not in str(attr)):
                self._gather_configured_ports(
                    switch_ip, attr, switch_ifs)

        return switch_ifs
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus.py/CiscoNexusMechanismDriver._get_config_switch_interfaces/swapped operands of `not in`