def adddefaultservices(self):
        for type in self.session.services.defaultservices:
            defaults = self.session.services.getdefaultservices(type)
            spn = self.createElement("Node")
            spn.setAttribute("type", type)
            self.sp.appendChild(spn)
            for svc in defaults:
                s = self.createElement("Service")
                spn.appendChild(s)
                s.setAttribute("name", str(svc._name))
Add default services and node types to the ServicePlan.
dataset/ETHPy150Open coreemu/core/daemon/core/misc/xmlwriter0.py/CoreDocumentWriter0.adddefaultservices