def METHOD_NAME(self):
    """ ldm state : None/inactive/bound/active
        ldm list -p domainname outputs:
            VERSION
            DOMAIN|[varname=varvalue]*
    """
    cmd = ['/usr/sbin/ldm', 'list', '-p', self.name]
    (ret, out, err) = self.call(cmd)
    if ret != 0:
        return None
    for word in out.split("|"):
        a=word.split('=')
        if len(a) == 2:
            if a[0] == 'state':
                return a[1]
    return None