'Get device_owner for the specified router.'

def _get_device_owner(self, context, router=None):

    router_is_uuid = isinstance(router, six.string_types)
    if router_is_uuid:
        router = self._get_router(context, router)
    if (is_ha_router(router) and (not is_distributed_router(router))):
        return constants.DEVICE_OWNER_HA_REPLICATED_INT
    return super(L3_HA_NAT_db_mixin, self)._get_device_owner(context, router)
