code: def maximum_crypto_domains(self):
          
          if self.get_property('adapter-family') != 'crypto':
              return None
          card_type = self.get_property('detected-card-type')
          if card_type.startswith('crypto-express-'):
              max_domains = self.manager.cpc.maximum_active_partitions
          else:
              raise ValueError("Unknown crypto card type: {!r}".
                               format(card_type))
          return max_domains
docs: Integer: The maximum number of crypto domains on this crypto adapter.
  
          The following table shows the maximum number of crypto domains for
          crypto adapters supported on IBM Z machine generations in DPM mode. The
          corresponding LinuxONE machine generations are listed in the notes
          below the table:
  
          =================  =========================  ===============
          Adapter type       Machine generations        Maximum domains
          =================  =========================  ===============
          Crypto Express 5S  z14 (3) / z13 (1)               85
          Crypto Express 5S  z14-ZR1 (4) / z13s (2)          40
          Crypto Express 6S  z14 (3)                         85
          Crypto Express 6S  z14-ZR1 (4)                     40
          =================  =========================  ===============
  
          Notes:
  
          (1) Supported for z13 and LinuxONE Emperor
          (2) Supported for z13s and LinuxONE Rockhopper
          (3) Supported for z14 and LinuxONE Emperor II
          (4) Supported for z14-ZR1 and LinuxONE Rockhopper II
  
          If this adapter is not a crypto adapter, `None` is returned.
  
          If the crypto adapter card type is not known, :exc:`ValueError` is
          raised.
  
          Raises:
  
            :exc:`~zhmcclient.HTTPError`
            :exc:`~zhmcclient.ParseError`
            :exc:`~zhmcclient.AuthError`
            :exc:`~zhmcclient.ConnectionError`
            :exc:`ValueError`: Unknown crypto card type