def summary(self):
    tpg = self.rtsnode
    status = None
    msg = []
    if tpg.has_feature('nexus'):
        msg.append(str(self.rtsnode.nexus))
    if (not tpg.enable):
        return ('disabled', False)
    if tpg.has_feature('acls'):
        if (('generate_node_acls' in tpg.list_attributes()) and int(tpg.get_attribute('generate_node_acls'))):
            msg.append('gen-acls')
        else:
            msg.append('no-gen-acls')
        if tpg.has_feature('auth'):
            if (not int(tpg.get_attribute('authentication'))):
                msg.append('no-auth')
                if int(tpg.get_attribute('generate_node_acls')):
                    status = True
            elif (not int(tpg.get_attribute('generate_node_acls'))):
                msg.append('auth per-acl')
            else:
                msg.append('tpg-auth')
                status = True
                if (not (tpg.chap_password and tpg.chap_userid)):
                    status = False
                if tpg.authenticate_target:
                    msg.append('mutual auth')
                else:
                    msg.append('1-way auth')
    return (', '.join(msg), status)
def summary(self):
    tpg = self.rtsnode
    status = None
    msg = []
    if tpg.has_feature('nexus'):
        msg.append(str(self.rtsnode.nexus))
    if (not tpg.enable):
        return ('disabled', False)
    if tpg.has_feature('acls'):
        if (('generate_node_acls' in tpg.list_attributes()) and int(tpg.get_attribute('generate_node_acls'))):
            msg.append('gen-acls')
        else:
            msg.append('no-gen-acls')
        if tpg.has_feature('auth'):
            if (not int(tpg.get_attribute('authentication'))):
                msg.append('no-auth')
                if int(tpg.get_attribute('generate_node_acls')):
                    status = True
            elif (not int(tpg.get_attribute('generate_node_acls'))):
                msg.append('auth per-acl')
            else:
                msg.append('tpg-auth')
                status = True
                if (not (tpg.chap_password and tpg.chap_userid)):
                    status = False
                if tpg.authenticate_target:
                    msg.append('mutual auth')
                else:
                    msg.append('1-way auth')
    return (', '.join(msg), status)