def _switch_defined(self, switch_ip):
switch = cfg.CONF.ml2_cisco.nexus_switches.get(switch_ip)<EOL>if switch and switch.username and switch.password:<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
Verify this ip address is defined (for Nexus).