'Create DVR mac address for a given host.'

def _create_dvr_mac_address(self, context, host):

    base_mac = cfg.CONF.dvr_base_mac.split(':')
    try:
        return self._create_dvr_mac_address_retry(context, host, base_mac)
    except exceptions.NeutronDbObjectDuplicateEntry:
        LOG.error(_LE('MAC    generation    error    after    %s    attempts'), db_api.MAX_RETRIES)
    raise ext_dvr.MacAddressGenerationFailure(host=host)
