code: def _get_port_channel_group(self, nexus_host, intf_type, interface):
          
  
          ch_grp = 0
  
          # channel-group only applied to ethernet,
          # otherwise, return 0
          if intf_type != 'ethernet':
              return ch_grp
  
          match_key = "eth" + interface
  
          action = snipp.PATH_GET_PC_MEMBERS
  
          starttime = time.time()
          result = self.client.rest_get(action, nexus_host)
          self.capture_and_print_timeshot(starttime, "getpc",
              switch=nexus_host)
          try:
              for pcmbr in result['imdata']:
                  mbr_data = pcmbr['pcRsMbrIfs']['attributes']
                  if mbr_data['tSKey'] == match_key:
                      _, nbr = mbr_data['parentSKey'].split("po")
                      ch_grp = int(nbr)
                      break
          except Exception:
              # Valid when there is no channel-group configured.
              ch_grp = 0
  
          LOG.debug("GET interface %(key)s port channel is %(pc)d",
              {'key': match_key, 'pc': ch_grp})
  
          return ch_grp
docs: Look for 'channel-group x' config and return x.
  
          :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 pc_group: Returns port channel group if
                             present else 0