code: def _get_interface_switch_trunk_present(
          self, nexus_host, intf_type, interface):
          
          result = self.get_interface_switch(nexus_host, intf_type, interface)
  
          if_type = 'l1PhysIf' if intf_type == "ethernet" else 'pcAggrIf'
          if_info = result['imdata'][0][if_type]
  
          try:
              mode_cfg = if_info['attributes']['mode']
          except Exception:
              mode_cfg = None
  
          mode_found = (mode_cfg == "trunk")
  
          try:
              vlan_list = if_info['attributes']['trunkVlans']
          except Exception:
              vlan_list = None
  
          vlan_configured = (vlan_list != const.UNCONFIGURED_VLAN)
  
          return mode_found, vlan_configured
docs: Check if 'switchport trunk' configs present.
  
          :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 mode_found: True if 'trunk mode' present
          :returns vlan_configured: True if trunk allowed vlan list present