'Return list of available IO groups.'

def get_available_io_groups(self):

    iogrps = []
    resp = self.ssh.lsiogrp()
    for iogrp in resp:
        try:
            if (int(iogrp['node_count']) > 0):
                iogrps.append(int(iogrp['id']))
        except KeyError:
            self.handle_keyerror('lsiogrp', iogrp)
        except ValueError:
            msg = (_('Expected    integer    for    node_count,    svcinfo    lsiogrp    returned:    %(node)s.') % {'node': iogrp['node_count']})
            raise exception.VolumeBackendAPIException(data=msg)
    return iogrps
