code: def switchport_list(self):
          
          urn = "{urn:brocade.com:mgmt:brocade-interface-ext}"
          result = []
          request_interface = self.get_interface_switchport_request()
          interface_result = self._callback(request_interface, 'get')
          for interface in interface_result.findall('%sswitchport' % urn):
              vlans = []
              interface_type = self.get_node_value(interface, '%sinterface-type',
                                                   urn)
              interface_name = self.get_node_value(interface, '%sinterface-name',
                                                   urn)
              mode = self.get_node_value(interface, '%smode', urn)
              intf = interface.find('%sactive-vlans' % urn)
              for vlan_node in intf.findall('%svlanid' % urn):
                  vlan = vlan_node.text
                  vlans.append(vlan)
              results = {'vlan-id': vlans,
                         'mode': mode,
                         'interface-name': interface_name,
                         'interface_type': interface_type}
              result.append(results)
          return result
docs: list[dict]:A list of dictionary items describing the details
           of list of dictionary items describing the details of switch port