African nations are scrambling to secure oil and gas as the Iran war disrupts supplies from the Middle East.