code: def add_wic_ports(self, wic_slot):
          
          wic_slot_number = int(wic_slot[3])
          wic_adapter = self.node['properties'][wic_slot]
  
          num_ports = ADAPTER_MATRIX[wic_adapter]['ports']
          port_type = ADAPTER_MATRIX[wic_adapter]['type']
          ports = []
  
          # Dynamips WICs port number start on a multiple of 16.
          base = 16 * (wic_slot_number + 1)
          # WICs are always in adapter slot 0.
          slot = 0
  
          for port_number in range(num_ports):
              phy_port_number = port_number + self.port_numbering[port_type]
              port_name = PORT_TYPES[port_type] + '%s/%s' % (slot,
                                                             phy_port_number)
              port_temp = {'name': port_name,
                           'id': self.port_id,
                           'port_number': base + port_number,
                           'slot_number': slot}
              ports.append(port_temp)
              self.port_id += 1
          self.port_numbering[port_type] += num_ports
          self.node['ports'].extend(ports)
docs: Add the ports for a specific WIC to the node['ports'] dictionary
  
          :param str wic_slot: WIC Slot (wic0)