def getdefaultservices(self, type):
        ''' Get the list of default services that should be enabled for a
            node for the given node type.
        '''
        r = []
        if type in self.defaultservices:
            defaults = self.defaultservices[type]
            for name in defaults:
                s = self.getservicebyname(name)
                if s is None:
                    self.session.warn("default service %s is unknown" % name)
                else:
                    r.append(s)
        return r
dataset/ETHPy150Open coreemu/core/daemon/core/service.py/CoreServices.getdefaultservices/original