Spain is shifting its foreign policy towards Africa while lobbying the EU and NATO for support to address migration from the continent, aggravated by the Ukraine invasion.