def _switch_defined(self, switch_ip):
        """Verify this ip address is defined (for Nexus)."""

        if ((switch_ip, const.USERNAME) in self._nexus_switches and
           (switch_ip, const.PASSWORD) in self._nexus_switches):
            return True
        else:
            return False
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus.py/CiscoNexusMechanismDriver._switch_defined/original