def get_hostgroups_id(cfg):
    """Get writer and reader hostgroup id's """
    writer_hostgroup_id = int(cfg.get('galera', 'writer_hostgroup_id'))
    reader_hostgroup_id = int(cfg.get('galera', 'reader_hostgroup_id'))
    return writer_hostgroup_id, reader_hostgroup_id