def get_nexus_type(self, nexus_host):
starttime = time.time()<EOL>response = self.client.rest_get(<EOL>snipp.PATH_GET_NEXUS_TYPE, nexus_host)<EOL>self.capture_and_print_timeshot(<EOL>starttime, "<STR_LIT>",<EOL>switch=nexus_host)<EOL>if response:<EOL><INDENT>try:<EOL><INDENT>result = response['<STR_LIT>'][<NUM_LIT:0>]["<STR_LIT>"]['<STR_LIT>']['<STR_LIT>']<EOL><DEDENT>except Exception:<EOL><INDENT>result = '<STR_LIT>'<EOL><DEDENT>nexus_type = re.findall(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>",<EOL>result)<EOL>if len(nexus_type) > <NUM_LIT:0>:<EOL><INDENT>LOG.debug("<STR_LIT>",<EOL>int(nexus_type[<NUM_LIT:0>]))<EOL>return int(nexus_type[<NUM_LIT:0>])<EOL><DEDENT><DEDENT>else:<EOL><INDENT>result = '<STR_LIT>'<EOL><DEDENT>LOG.debug("<STR_LIT>",<EOL>result)<EOL>return -<NUM_LIT:1><EOL>
Given the nexus host, get the type of Nexus switch.

        :param nexus_host: IP address of Nexus switch
        :returns: Nexus type