code: def get_interface_switch(self, nexus_host,
                               intf_type, interface):
          
  
          if intf_type == "ethernet":
              path_interface = "phys-[eth" + interface + "]"
          else:
              path_interface = "aggr-[po" + interface + "]"
  
          action = snipp.PATH_IF % path_interface
  
          starttime = time.time()
          response = self.client.rest_get(action, nexus_host)
          self.capture_and_print_timeshot(starttime, "getif",
              switch=nexus_host)
          LOG.debug("GET call returned interface %(if_type)s %(interface)s "
              "config", {'if_type': intf_type, 'interface': interface})
          return response
docs: 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