def summary(self):
    status = None
    msg = []
    fm = self.rtsnode
    if (fm.has_feature('discovery_auth') and fm.discovery_enable_auth):
        if (not (fm.discovery_password and fm.discovery_userid)):
            status = False
        else:
            status = True
        if fm.discovery_authenticate_target:
            msg.append('mutual disc auth')
        else:
            msg.append('1-way disc auth')
    msg.append(('Targets: %d' % len(self._children)))
    return (', '.join(msg), status)
def summary(self):
    status = None
    msg = []
    fm = self.rtsnode
    if (fm.has_feature('discovery_auth') and fm.discovery_enable_auth):
        if (not (fm.discovery_password and fm.discovery_userid)):
            status = False
        else:
            status = True
        if fm.discovery_authenticate_target:
            msg.append('mutual disc auth')
        else:
            msg.append('1-way disc auth')
    msg.append(('Targets: %d' % len(self._children)))
    return (', '.join(msg), status)