def get_interface_switch(self, nexus_host,<EOL>intf_type, interface):
if intf_type == "<STR_LIT>":<EOL><INDENT>path_interface = "<STR_LIT>" + interface + "<STR_LIT:]>"<EOL><DEDENT>else:<EOL><INDENT>path_interface = "<STR_LIT>" + interface + "<STR_LIT:]>"<EOL><DEDENT>action = snipp.PATH_IF % path_interface<EOL>starttime = time.time()<EOL>response = self.client.rest_get(action, nexus_host)<EOL>self.capture_and_print_timeshot(starttime, "<STR_LIT>",<EOL>switch=nexus_host)<EOL>LOG.debug("<STR_LIT>"<EOL>"<STR_LIT>", {'<STR_LIT>': intf_type, '<STR_LIT>': interface})<EOL>return response<EOL>
Get the interface data from host.

        :param nexus_host: IP address of Nexus switch
        :param intf_type:  String which specifies interface type.
                           example: ethernet
        :param interface:  String indicating which interface.
                           example: 1/19
        :returns response: Returns interface data