'Bind an LD and attach a nickname to it.'

def ldbind(self, name, pool, ldn, size):

    errnum = ''
    cmd = ('iSMcfg    ldbind    -poolnumber    %(poolnumber)d    -ldn    %(ldn)d    -capacity    %(capacity)d    -immediate' % {'poolnumber': pool, 'ldn': ldn, 'capacity': size})
    (out, err, status) = self._execute(cmd, [0], False)
    errnum = err
    if (status != 0):
        return (False, errnum)
    cmd = ('iSMcfg    nickname    -ldn    %(ldn)d    -newname    %(newname)s    -immediate' % {'ldn': ldn, 'newname': name})
    self._execute(cmd)
    return (True, errnum)
