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