code: def _add_peernode(line):
      '''
      Analyse the line of peer nodes of ``drbdadm status``
      '''
      global lastpnodevolumes
  
      fields = line.strip().split()
  
      peernode = {}
      peernode["peernode name"] = fields[0]
      #Could be role or connection:
      peernode[fields[1].split(":")[0]] = fields[1].split(":")[1]
      peernode["peer volumes"] = []
      resource["peer nodes"].append(peernode)
      lastpnodevolumes = peernode["peer volumes"f _add_peernode(line):
      '''
      Analyse the line of peer nodes of ``drbdadm status``
      '''
      global lastpnodevolumes
  
      fields = line.strip().split()
  
      peernode = {}
      peernode["peernode name"] = fields[0]
      #Could be role or connection:
      peernode[fields[1].split(":")[0]] = fields[1].split(":")[1]
      peernode["peer volumes"] = []
      resource["peer nodes"].append(peernode)
      lastpnodevolumes = peernode["peer volumes"]
docs: Analyse the line of peer nodes of ``drbdadm status``