'Get provider based on flavor or ha/distributed flags.'

def _get_provider_for_create(self, context, router):

    if (not _flavor_specified(router)):
        return self._attrs_to_driver(router)
    return self._get_l3_driver_by_flavor(context, router['flavor_id'])
