'return WBEM connection.'

def _get_eternus_connection(self, filename=None):

    LOG.debug('_get_eternus_connection,    filename:    %s.', filename)
    ip = self._get_drvcfg('EternusIP', filename)
    port = self._get_drvcfg('EternusPort', filename)
    user = self._get_drvcfg('EternusUser', filename)
    passwd = self._get_drvcfg('EternusPassword', filename)
    url = ((('http://' + ip) + ':') + port)
    conn = pywbem.WBEMConnection(url, (user, passwd), default_namespace='root/eternus')
    if (conn is None):
        msg = (_('_get_eternus_connection,    filename:    %(filename)s,    ip:    %(ip)s,    port:    %(port)s,    user:    %(user)s,    passwd:    ****,    url:    %(url)s,    FAILED!!.') % {'filename': filename, 'ip': ip, 'port': port, 'user': user, 'url': url})
        LOG.error(msg)
        raise exception.VolumeBackendAPIException(data=msg)
    LOG.debug('_get_eternus_connection,    conn:    %s.', conn)
    return conn
